7. Mobile Web Development Flashcards
In what year did mobile browser access surpass desktop browser access?
2019
What is the most-often used mobile web browser in North America?
Safari
What are the three main techniques for implementing mobile websites?
- Separate websites
- Dynamic serving
- Responsive web design
A(n) ____ website changes the display of elements at specific browser widths, whereas a(n) ____ will smoothly adjust the width of the container to fit the browser width
adaptive, responsive
A screen ____ is software that simulates how mobile device screens operate.
emulator
The ____ ratio is the ratio between device pixels and logical pixels
device pixel ratio (DPR)
A DPR of 2 means ____ logical pixel is ____ device pixels wide and ____ device pixels tall
1, 2, 2
A logical pixel is also called a ____ pixel
device-independent
Is the CSS “px” unit a logical or a device pixel?
A logical pixel
In what three ways does Chrome’s DevTools allow you to emulate network conditions?
- You can disable caching
- You can use network throttling to simulate slower networks like 2G or 3G or simulate being offline
- You can change the user agent string to any number of browser user agents
A browser’s ____ is the visible area of a webpage, not including the address bar, bookmark bar, tabs, etc
viewport
The ____ specifies viewport properties that affect what the browser’s viewport displays
viewport meta element
What are three common properties in the viewport \<meta>
element ?
-
width
- The viewport width, which is typically set todevice-width
, the device’s screen width -
initial-scale
- The initial zoom level, which is typically set to 1 so the webpage is initially zoomed in at 100% -
user-scalable
- A boolean value that, when set tono
, prevents the user from zooming in and out
The viewport properties are specified in the viewport meta element’s ____ attribute, separated by commas
content
<meta name="viewport" content="width=device-width, initial-scale=1">
A ____ is a percentage of the browser viewport’s width or height
viewport unit