WEB-DEVELOPMENT-APPLICATIONS practice question 8 of 25
Which layout design is easiest to manage on a variety of devices?
Full set: 131 questionsCSS Grid Layout is a two-dimensional layout system designed specifically for creating complex, responsive web layouts. It provides developers with direct control over both rows and columns, making it significantly easier to rearrange and manage content for different screen sizes and devices compared to other methods. Its inherent flexibility and power make it a superior choice for building adaptive designs that work consistently across a variety of viewports.
A. Flow: This is the default layout model. It lacks the built-in, two-dimensional control of Grid, requiring more complex workarounds for responsive design.
B. Table: An outdated and inflexible method for page layout. It is not responsive and presents significant accessibility and maintenance challenges.
D. Border: A CSS property used for styling an element's outline, not a method for structuring the overall page layout.
- MDN Web Docs (Mozilla). (n.d.). CSS Grid Layout. In MDN Web Docs. Retrieved from https://developer.mozilla.org/en-US/docs/Web/CSS/CSSGridLayout. The documentation states, "Grid is a powerful layout system... It is ideal for creating two-dimensional layouts." (See section: "Basic concepts of grid layout").
- W3C. (2020, December 18). CSS Grid Layout Module Level 1. W3C Candidate Recommendation. Retrieved from https://www.w3.org/TR/css-grid-1/. Section 1, "Introduction," describes Grid as a system for "two-dimensional layout" intended to solve layout problems on the web.
- MIT OpenCourseWare. (2013). 6.813/6.831 User Interface Design and Implementation, Lecture 6: CSS. Retrieved from https://ocw.mit.edu. The course materials describe Grid as a "2D layout system... great for overall page layout," highlighting its suitability for managing complex, device-agnostic layouts.
Question breakdown
Key idea: CSS Grid gives two-dimensional control of rows and columns, so a layout can be rearranged for different viewports with a few media-query changes.
How to reach the answer
- The clue is 'easiest to manage on a variety of devices', which points to responsive layout.
- Responsive layouts need content that can be repositioned per screen size without changing the markup.
- Grid lets you redefine grid-template-columns or grid-template-areas inside a media query to reflow the whole page.
- Flow is the default and offers no structural control, tables are rigid, and border is a styling property, so Grid is left.
Each option
Common trap: Flow can sound attractive because default flow content is naturally fluid. However, it offers no way to restructure a layout across devices.
In practice: Developers often build a page shell with grid-template-areas and swap the area map inside media queries. For example, a sidebar can sit beside the content on desktop and stack below it on mobile.
Remember: For responsive page-level layouts that need control over both rows and columns, reach for CSS Grid.
Drafted with AI assistance and checked against the answer key.
Keep practicing
Take the free WEB-DEVELOPMENT-APPLICATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other WEB-DEVELOPMENT-APPLICATIONS practice questions
- Question 1Given the following JavaScript code: ```javascript var n1 = 10; var n2 = "20.39"; ``` Whi…
- Question 2Which attribute displays help text in an input field without specifying an actual value f…
- Question 4Which element attaches an external CSS document to a web page?
- Question 5Which HTML tag should a developer use to create a drop-down list?
- Question 6Which method allows the end user to enter text as an answer to a question as the page loa…
- Question 9Which structure tag should a developer use to place contact information on a web page?
