WEB-DEVELOPMENT-APPLICATIONS practice question 8 of 25

Which layout design is easiest to manage on a variety of devices?

Full set: 131 questions
Answer options
A: Flow
B: Table
C: Grid Correct answer
D: Border
Correct Answer:
C. Grid
Explanation

CSS 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.

Why Incorrect

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.

References

- 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

Tests
Choose a CSS layout model suited to responsive design
Difficulty
Easy

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

  1. The clue is 'easiest to manage on a variety of devices', which points to responsive layout.
  2. Responsive layouts need content that can be repositioned per screen size without changing the markup.
  3. Grid lets you redefine grid-template-columns or grid-template-areas inside a media query to reflow the whole page.
  4. Flow is the default and offers no structural control, tables are rigid, and border is a styling property, so Grid is left.

Each option

  • AIncorrect. Normal flow is the default block/inline stacking, and it gives no direct control for rearranging regions across screen sizes.
  • BIncorrect. Table-based layout is rigid, hard to reflow on small screens, and semantically wrong for page structure.
  • CCorrect. Grid defines rows and columns explicitly, and you can redefine them per breakpoint, which makes multi-device layouts simple to manage.
  • DIncorrect. Border is a box-model styling property, not a layout system. (BorderLayout is a Java Swing concept, not CSS.)

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.

Start the free practice test

More questions

Other WEB-DEVELOPMENT-APPLICATIONS practice questions

Scroll to Top