WEB-DEVELOPMENT-FOUNDATION practice question 9 of 15

Developers consider three platforms for viewport sizes. What is one of them?

Full set: 75 questions
Answer options
A: E-reader
B: Smart device
C: Projector
D: Tablet Correct answer
Correct Answer:
D. Tablet
Explanation

In responsive web design, developers typically target three primary device categories based on viewport size to ensure a consistent user experience. These categories are mobile phones (small viewports), tablets (medium viewports), and desktops/laptops (large viewports). The tablet represents the intermediate screen size between a smartphone and a traditional computer monitor. Designing for these three platforms allows developers to create flexible layouts that adapt effectively to the most common browsing environments.

Why Incorrect

A. E-reader: E-readers are a niche market and not considered one of the three primary platforms for general responsive web development.
B. Smart device: This term is too broad; while a smartphone is a key target, "smart device" could also include watches or TVs, which are not part of the core trio.
C. Projector: A projector is a display output, not a distinct device platform with a specific viewport that developers target for responsive design.

References

1. Mozilla Developer Network (MDN) Web Docs: In the guide on Responsive Design, MDN explains the use of media queries to target different viewport ranges. Common breakpoints are often set to distinguish between phone, tablet, and desktop layouts. For example, a typical tablet breakpoint is around 768px.

Source: MDN Web Docs, "Responsive design," Section: Viewport. (developer.mozilla.org/en-US/docs/Web/Progressivewebapps/Responsive/Responsivedesignbuildingblocks)

2. Google for Developers (web.dev): The "Responsive Web Design Basics" guide explicitly uses the device classes of mobile, tablet, and desktop to illustrate how layouts should adapt to different screen sizes. It provides patterns and breakpoints commonly associated with these three platforms.

Source: LePage, P. (2019). "Responsive Web Design Basics," Section: Use CSS media queries for responsiveness. (web.dev/responsive-web-design-basics/)

3. W3C (World Wide Web Consortium): The W3C's "Media Queries Level 4" specification provides the technical foundation for responsive design. The examples and features are designed to allow developers to query device characteristics, with screen width being primary, enabling distinct styles for device classes like tablets.

Source: W3C. (2020). "Media Queries Level 4," Section 2: Media Queries. (www.w3.org/TR/mediaqueries-4/)

Scroll to Top