WEB-DEVELOPMENT-FOUNDATION practice question 9 of 15
Developers consider three platforms for viewport sizes. What is one of them?
Full set: 75 questionsIn 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.
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.
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/)
Keep practicing
Take the free WEB-DEVELOPMENT-FOUNDATION practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other WEB-DEVELOPMENT-FOUNDATION practice questions
- Question 2What is one of the possible values of the text-align property?
- Question 3What is matched by the :hover selector?
- Question 4What describes the matches resulting from the img: first-child selector?
- Question 5Which two color definitions are valid for use with CSS? Choose 2 answers.
- Question 8What does the timelines tool of Safari Web Inspector enable a developer to do?
- Question 10Which CSS unit is a relative unit?
