8. Responsive and Adaptive Web DevelopmentIntroduction and ContextWeb interfaces are no longer designed for a single screen, browser, or input device. A service may be accessed on a compact phone in portrait orientation, a tablet used with a keyboard, a desktop monitor, a television, or an assistive technology. Screen dimensions, pixel density, network quality, browser capabilities, user preferences, and interaction methods all vary. Responsive and adaptive web development addresses this variation by designing interfaces that remain usable, readable, accessible, and visually coherent across changing conditions. Responsive development primarily allows a layout to adjust continuously through flexible dimensions, fluid media, flexible typography, and CSS rules that respond to available space. Adaptive development, by contrast, deliberately provides different layout or content configurations for defined contexts. In professional practice the two approaches are not competitors. A robust product commonly uses responsive techniques within adaptive product decisions: the interface may have distinct mobile and desktop information architectures, while each configuration uses fluid grids and intrinsic sizing. This chapter focuses on the practical and conceptual foundations required to implement mobile-first interfaces. It examines intrinsic design, Flexbox, Grid, media and container queries, fluid typography, responsive images, breakpoint strategies, orientation, input modes, performance, accessibility, and professional decision-making. The objective is not simply to make a page “fit” a screen, but to make the experience appropriate to the user’s context. Learning ObjectivesAfter completing this chapter, a student should be able to: 1. Explain the distinction between responsive, adaptive, and fluid design. 2. Apply mobile-first principles to page structure and CSS architecture. 3. Select Flexbox, Grid, intrinsic sizing, or a combination according to layout needs. 4. Design breakpoints from content constraints rather than device labels. 5. Use media queries, container queries, orientation conditions, and interaction media features appropriately. 6. Implement fluid typography and responsive images without compromising readability or performance. 7. Evaluate layouts across devices, orientations, browsers, and input modes. 8. Identify accessibility, performance, maintenance, and governance risks in responsive systems. 9. Analyse a responsive design problem and justify an appropriate implementation strategy. The Responsive Design ProblemA fixed-width design assumes that the designer knows the dimensions of the display and the conditions of use. That assumption is unreliable. Even two users with identical phones may experience different usable widths because of browser chrome, zoom settings, text scaling, split-screen operation, or accessibility preferences. A responsive interface therefore treats the viewport as a changing environment rather than a permanent canvas. Responsive design is an approach in which layout and presentation respond to available space and user-agent conditions. A responsive card may grow, shrink, wrap, or change its internal arrangement. Adaptive design uses explicit variants, often selected through breakpoints, device capabilities, server logic, or application state. For example, a complex desktop navigation may be replaced by a compact navigation pattern on smaller screens. The distinction is useful, but real systems frequently combine both approaches. Three ideas clarify the design problem: - Viewport width is not device identity. A breakpoint should normally describe where the content stops working well, not where a particular phone or tablet happens to fall.
- Layout is a relationship. The designer establishes relationships among content, space, and interaction rather than prescribing every coordinate.
- Content determines structure. A navigation label, data table, or form may require a different arrangement at a particular width. The correct breakpoint is discovered by observing that constraint.
A responsive page also needs a reliable viewport configuration. In HTML, the following declaration allows the layout viewport to correspond appropriately to the device width: ```html <meta name="viewport" content="width=device-width, initial-scale=1"> ``` This declaration does not make a site responsive by itself. It ensures that CSS measurements and media queries are interpreted in a way suitable for modern mobile browsers. Mobile-First and Intrinsic DesignMobile-first development begins with the smallest practical layout and progressively enhances it as space and capability become available. The approach encourages prioritisation: essential content and actions are established first, while secondary navigation, decorative imagery, and multi-column arrangements are added only when justified. Mobile-first CSS normally contains the base rules without a media query and adds wider-layout rules through `min-width` queries. ```css .page { padding-inline: 1rem; } @media (min-width: 48rem) { .page { padding-inline: 2rem; } } ``` Mobile-first does not mean designing only for phones or creating a diminished desktop experience. It means creating a resilient baseline and avoiding assumptions that large space is always available. It also supports progressive enhancement: a basic, readable experience remains available when advanced layout or interaction features are unsupported. Intrinsic design strengthens this approach. An intrinsic layout allows content and available space to influence dimensions. CSS functions such as `min()`, `max()`, and `clamp()`, together with `minmax()`, `auto-fit`, `auto-fill`, and flexible tracks, express design intent without requiring a breakpoint for every small change. ```css .wrapper { width: min(100% - 2rem, 72rem); margin-inline: auto; } .heading { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem); } ``` The wrapper retains space at narrow widths while preventing excessive line length on wide displays. The heading scales gradually but remains bounded. Intrinsic design is especially valuable when content is translated, enlarged, or viewed in an unfamiliar viewport. A common failure is to treat `100vw` as a universal container width. On some browsers it includes the scrollbar area and can produce horizontal overflow. `width: 100%`, a constrained wrapper, and careful handling of margins are generally safer. Developers should also avoid fixed heights for content containers unless the content is deliberately clipped or scrollable; text expansion and localization can otherwise cause overlap. Choosing Between Flexbox and GridFlexbox is primarily a one-dimensional layout system. It distributes items along a row or column and is therefore well suited to navigation bars, button groups, toolbars, form controls, and media objects. Grid is a two-dimensional system, defining rows and columns together. It is suitable for page regions, card collections, dashboards, and layouts in which horizontal and vertical alignment are both significant. A responsive navigation group can use Flexbox: ```css .nav-list { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; } ``` `flex-wrap` is important because it allows the content to form another line rather than forcing overflow. `gap` expresses consistent spacing without depending on fragile margins. Developers should understand the difference between `flex-basis`, `flex-grow`, and `flex-shrink`. A flex item may have a nominal basis but still shrink unexpectedly when the container is narrow. Applying `min-width: 0` to a flex child can also be necessary when long text prevents it from shrinking. A card collection can use Grid with an intrinsic track definition: ```css .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; } ``` The cards form as many columns as the available space permits, while each card retains a useful minimum width. This pattern often eliminates arbitrary tablet and desktop breakpoints. `auto-fit` collapses empty tracks; `auto-fill` preserves the conceptual tracks even when they are empty. The choice affects the distribution of spare space. Grid can also establish a page shell: ```css .layout { display: grid; grid-template-columns: 1fr; gap: 2rem; } @media (min-width: 60rem) { .layout { grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); } } ``` The `minmax(0, 2fr)` form prevents a long unbreakable item from forcing the first column wider than intended. In responsive work, overflow is frequently caused not by Grid itself but by a child whose automatic minimum size is larger than the available track. Flexbox and Grid should not be treated as alternatives in every situation. A Grid page shell may contain a Flexbox navigation component, while a Grid card may use Flexbox internally to align its footer. The decision should follow the relationship being represented. Breakpoints as Content ConstraintsA breakpoint is a condition at which a layout or component changes because its current arrangement no longer satisfies a requirement. Device-specific lists such as “phone, tablet, laptop” are convenient for discussion but weak as implementation rules. Products are used on unusually wide phones, small laptops, split windows, and zoomed interfaces. A breakpoint should therefore be introduced when content becomes crowded, touch targets become difficult to reach, a line becomes excessively long, or a meaningful change in information hierarchy is required. A practical process is as follows: 1. Build the base layout with flexible dimensions. 2. Resize the viewport gradually rather than jumping between named devices. 3. Identify the point at which the content fails or loses quality. 4. Add the smallest rule that solves that failure. 5. Test a range around the breakpoint and on real devices. Media queries express viewport or user-agent conditions: ```css @media (min-width: 50rem) and (orientation: landscape) { .hero { grid-template-columns: 1.1fr 0.9fr; } } ``` Modern media features include `prefers-reduced-motion`, `prefers-color-scheme`, `forced-colors`, `pointer`, `hover`, and `prefers-contrast` where supported. These features should influence experience, not merely decoration. For example, animation should be reduced or removed when a user requests reduced motion. ```css @media (prefers-reduced-motion: reduce) { , ::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } ``` The `pointer` feature distinguishes coarse input, such as a finger, from fine input, such as a mouse. It should not be used to assume that a phone always lacks a mouse or that a desktop never has touch. More importantly, a user interface should remain operable with multiple input modes rather than hiding essential functionality behind hover. Container Queries and Component ResponsivenessViewport media queries are useful when the whole page changes according to the viewport. They are less suitable when a reusable component may appear in different contexts. A card in a narrow sidebar should respond to the sidebar’s width, not to the width of the entire browser window. Container queries solve this problem. ```css .dashboard-panel { container-type: inline-size; } @container (min-width: 32rem) { .panel-content { display: grid; grid-template-columns: 1fr 1fr; } } ``` The component’s parent establishes a query container. The component then adapts to its containing block. This supports modular design systems because components carry their own layout logic. It also reduces the need for page-specific overrides. Container queries do not eliminate media queries. A navigation region that changes because of the viewport or a user preference may still require a media query, while a card’s internal arrangement is better controlled by a container query. A mature architecture defines which decisions belong to the page shell and which belong to a component. Fluid Typography and Readable TextTypography is a structural part of responsive design. A narrow screen cannot support the same line length, heading scale, or spacing used on a wide display. At the same time, abrupt type changes at several breakpoints can produce an inconsistent experience. Fluid typography uses bounded interpolation: ```css :root { --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); --step-title: clamp(2rem, 1.4rem + 3vw, 4rem); } body { font-size: var(--step-body); line-height: 1.55; } h1 { font-size: var(--step-title); line-height: 1.05; } ``` The minimum and maximum values are important. Unbounded viewport-based scaling can make text too small on narrow displays or uncomfortably large on large monitors. Readability also depends on line length, contrast, font loading, weight, and user zoom. A content column should generally be constrained rather than allowed to span an entire wide monitor. Relative units such as `rem`, `em`, percentages, and viewport units express scalable relationships. Fixed units remain appropriate for some borders, icons, and minimum interaction dimensions, but a design that uses pixels for every size may resist user preferences. Developers should never disable browser zoom merely to preserve a visual composition. Responsive Images and MediaImages can be a major source of bandwidth use and layout instability. A responsive implementation selects an appropriate resource for the display and reserves the correct space before the resource loads. ```html <img src="product-640.jpg" srcset="product-640.jpg 640w, product-1280.jpg 1280w, product-1920.jpg 1920w" sizes="(min-width: 60rem) 50vw, 100vw" width="1920" height="1280" alt="A blue travel backpack displayed on a table"> ``` `srcset` provides alternatives, while `sizes` tells the browser the likely rendered width. The intrinsic `width` and `height` preserve the aspect ratio and reduce cumulative layout shift. For art direction, where different crops are appropriate at different sizes, the `picture` element can provide alternative sources: ```html <picture> <source media="(min-width: 60rem)" srcset="landscape-banner.jpg"> <img src="portrait-banner.jpg" alt="A team collaborating around a table"> </picture> ``` CSS should normally use `max-width: 100%; height: auto` for fluid images. `object-fit: cover` is useful for deliberately cropped media, but cropping must not remove meaningful information. Decorative images may use an empty `alt` attribute; informative images need accurate alternative text. Lazy loading can reduce initial work for below-the-fold images, but critical above-the-fold content should not be delayed indiscriminately. Video, canvas, maps, and embedded documents need special treatment. They should be constrained within their containers, preserve an appropriate aspect ratio, and provide accessible alternatives or controls. A responsive layout is not complete if only ordinary images adapt. Orientation, Input Modes, and AccessibilityOrientation changes can alter both available width and height. A portrait layout may provide insufficient vertical room in landscape on a phone, while a landscape dashboard may become unusable when rotated. Orientation should be tested rather than assumed. Do not lock orientation unless the task genuinely requires it, such as a specialised game or instrument interface. Responsive design is also about more than dimensions. A touch user needs controls with adequate target area and spacing. A keyboard user needs visible focus and logical tab order. A screen-reader user needs semantic structure independent of visual arrangement. A hover-only disclosure is inaccessible to touch and keyboard users. CSS reordering can create a visual sequence that differs from the document order, causing confusion for assistive technology and keyboard navigation. Semantic HTML should provide the foundation: headings should reflect hierarchy, buttons should perform actions, links should navigate, forms should have labels, and landmarks should identify major regions. CSS should change presentation without destroying meaning. When content is hidden at a breakpoint, the team must decide whether it is genuinely unnecessary or merely being concealed from a particular viewport. Essential content should not disappear simply because it is inconvenient to arrange. Responsive accessibility also includes zoom, text enlargement, high contrast, reduced motion, and color independence. Testing at 200 percent zoom and with keyboard navigation often reveals failures that are invisible in a normal-width developer preview. Performance and Implementation ArchitectureResponsive decisions affect performance. Sending a high-resolution desktop image to every phone, loading several font families, and executing costly layout scripts can undermine an otherwise elegant design. Performance should be treated as a design constraint from the beginning. Useful practices include: - serving appropriately sized images and modern formats where supported;
- reserving image dimensions to prevent layout shifts;
- limiting font families and font weights;
- using `font-display` deliberately and testing the resulting layout shift;
- avoiding unnecessary JavaScript for layout that CSS can perform;
- loading non-critical resources according to their actual importance;
- measuring on constrained networks and modest devices, not only on a high-end development machine.
A maintainable CSS architecture separates tokens, global foundations, layout primitives, components, and state or utility rules. Custom properties can hold spacing, color, and typography decisions. Components should expose predictable interfaces rather than rely on selectors tied to a particular page. The team should document breakpoint intent—for example, “two-column article layout when the reading and related-content regions both meet their minimum widths”—instead of recording only a number such as `960px`. Automated visual regression testing can compare representative viewport sizes, but it should not replace exploratory resizing and real-device testing. A test matrix should include narrow and wide widths, portrait and landscape orientations, zoom, keyboard operation, touch interaction, reduced motion, dark mode where supported, and content variations such as long names and translated strings. An Applied Case: Rebuilding a Public-Service ApplicationBackgroundThe following is an illustrative case concerning a fictional public-service application, CivicApply. The service allows residents to find benefits, check eligibility, upload documents, and track applications. Its initial interface was designed on a 1440-pixel desktop canvas and later compressed for smaller screens. Situation and ProblemOn phones, the navigation wrapped into three lines, the eligibility form required horizontal scrolling, and uploaded-document cards displayed oversized thumbnails. On tablets, the side panel became too narrow for error messages. Users who enlarged text encountered clipped buttons. The product team initially proposed adding breakpoints for popular phone and tablet models. AnalysisA content review showed that the real constraints were not device categories. The navigation needed a single compact row or a menu control; form fields required a minimum readable width; document cards needed a thumbnail no wider than necessary; and the side panel required approximately one-third of the available layout width to display guidance and validation messages. User research also found that many residents used keyboard navigation on shared desktop computers and zoomed the interface substantially. Approach and SolutionThe team adopted a mobile-first structure. Essential actions were placed in the document order, while secondary links were placed behind an accessible menu button on narrow screens. The form used a single column by default and Grid columns only when both fields could maintain their minimum widths. The application shell used Grid at a content-derived breakpoint, while each document card used a container query so that it could adapt both in the main area and in a narrow review panel. Images were supplied through `srcset`, with fixed intrinsic dimensions and a smaller crop for compact cards. Typography used bounded `clamp()` values, but form controls retained comfortable sizes at every width. Error messages remained in the document flow rather than being positioned over fields. `prefers-reduced-motion` disabled animated transitions, and focus indicators were preserved. Testing covered portrait and landscape phones, browser zoom, keyboard-only operation, long translated labels, and slow connections. OutcomeThe redesign removed horizontal scrolling, reduced unnecessary image transfer, and allowed the same components to operate in several page contexts. More importantly, the team stopped treating responsiveness as a list of device patches. Layout rules were documented in relation to content and component constraints, making later maintenance more predictable. Learning PointsThe case demonstrates that responsive engineering is an exercise in prioritisation and modelling relationships. A breakpoint is valuable when it records a meaningful change in content behaviour. Container queries can make components portable, while semantic structure and accessible interaction patterns ensure that adaptation does not create a separate, inferior experience for users with different devices or abilities. Challenges, Risks, and Common MistakesOne frequent mistake is breakpoint accumulation. Developers add a new query whenever a single component looks awkward, eventually producing contradictory rules. Intrinsic sizing, component-level queries, and a review of the component’s minimum content width often provide a cleaner solution. Another mistake is confusing visual shrinking with responsive design. A desktop table reduced to unreadable text is not a successful mobile table. Depending on the task, the correct solution may be a transformed card view, selective columns, horizontal scrolling with clear affordance, or a different information sequence. The decision should preserve the task’s meaning rather than merely preserve the desktop appearance. Other risks include horizontal overflow from long words or fixed-width children, inaccessible CSS reordering, hidden content that remains unavailable to assistive technologies, insufficient contrast in dark mode, hover-dependent actions, and fixed heights that clip enlarged text. Teams should also distinguish network adaptation from layout adaptation. A narrow screen may warrant a smaller image, but a fast connection does not justify a dense or unusable layout. Adaptive variants can increase design and testing cost. They may also create inconsistent behaviour if server-side device detection, client-side media queries, and application logic disagree. When variants are necessary, their purpose, selection rule, fallback, and accessibility behaviour should be documented. Progressive enhancement provides a safer baseline than relying on a single detection mechanism. Professional and Governance ConsiderationsResponsive design has organizational consequences. Design systems should define tokens, layout primitives, component contracts, accessibility requirements, supported browsers, and testing responsibilities. Product owners must decide whether a feature is essential on every form factor or whether the task should be reorganised. Developers, designers, content specialists, accessibility practitioners, and quality engineers need a shared vocabulary for discussing constraints. Governance also involves evidence. Teams should record why a breakpoint exists, which content requirement it protects, and how it was tested. Analytics can reveal viewport distributions, but analytics should not be used to exclude minority users without a justified service decision. Privacy-respecting measurement should avoid collecting unnecessary personal information. Accessibility standards and applicable regulations may impose obligations concerning keyboard access, text resizing, contrast, and equivalent functionality. Emerging browser capabilities—including container queries, dynamic viewport units, cascade layers, and increasingly capable media features—make responsive systems more expressive. They do not remove the need for content judgement, semantic HTML, performance measurement, or inclusive testing. AI-assisted code generation may suggest CSS patterns, but generated code still requires review for overflow, accessibility, browser support, and maintainability. Best-Practice ChecklistA professional responsive implementation generally follows these principles: - begin with semantic content and a mobile-first baseline;
- use flexible containers, intrinsic sizing, and bounded fluid values;
- choose Flexbox for one-dimensional relationships and Grid for two-dimensional structure;
- create breakpoints when content requires them, not merely for named devices;
- use container queries for components that live in variable contexts;
- provide responsive images, intrinsic dimensions, and meaningful alternative text;
- test orientation, zoom, keyboard access, touch, hover, reduced motion, and high contrast;
- preserve document order and avoid hover-only or visually hidden essential content;
- measure performance on realistic devices and networks;
- document the intent of layout rules and verify them with real content.
Chapter SummaryResponsive and adaptive web development creates interfaces that remain effective across varying screens, capabilities, and contexts. Responsive techniques use flexible relationships and intrinsic sizing, while adaptive strategies provide deliberate variants when information architecture or interaction must change. Mobile-first development establishes a prioritised baseline and progressively enhances it. Flexbox is appropriate for one-dimensional arrangements, Grid for two-dimensional structures, and container queries for components whose behaviour depends on their containing region. Successful breakpoint strategies arise from content constraints rather than device labels. Fluid typography must be bounded and readable; responsive images should use suitable sources, intrinsic dimensions, and accurate alternative text. Orientation, input modes, zoom, motion preferences, keyboard access, and semantic structure are integral to responsiveness. Performance, maintainability, governance, and testing determine whether a layout remains reliable in production. The central professional principle is to design relationships among content, space, technology, and human needs rather than to reproduce a fixed visual composition at multiple sizes. Key TermsResponsive design: A design approach in which layout and presentation adjust to available space and user conditions. Adaptive design: An approach that provides deliberate interface configurations for defined contexts or conditions. Mobile-first: A development strategy that establishes a small-screen baseline and enhances it for larger or more capable contexts. Intrinsic design: Layout design in which content dimensions and available space influence the resulting arrangement. Viewport: The browser’s visible area in which a document is rendered. Breakpoint: A condition at which a layout or component changes because its current arrangement no longer meets a requirement. Media query: A CSS conditional rule based on viewport, device, or user-preference features. Container query: A conditional rule based on the size or characteristics of an element’s containing context. Flexbox: A one-dimensional CSS layout model for distributing and aligning items in a row or column. CSS Grid: A two-dimensional CSS layout model based on rows and columns. Fluid typography: Typography that scales within defined minimum and maximum values. Responsive image: An image implementation that selects or displays an appropriate resource for the context. Art direction: Supplying different image crops or compositions for different display conditions. Intrinsic sizing: Sizing that reflects an element’s content and available space rather than a fixed dimension. Progressive enhancement: Building a functional baseline and adding enhanced capabilities where supported. Cumulative layout shift: Unexpected movement of page content during loading or interaction. Input modality: The method used to interact with an interface, such as touch, mouse, keyboard, or assistive technology. Semantic HTML: HTML whose elements communicate the meaning and structure of content. Design system: A coordinated set of design tokens, components, rules, and documentation. Content constraint: A minimum or maximum condition required for content to remain usable and intelligible. Review QuestionsShort Answer Questions1. Distinguish responsive design from adaptive design. 2. Why should breakpoints generally be based on content constraints rather than device names? 3. State one appropriate use for Flexbox and one for CSS Grid. 4. What problem does a container query solve? 5. Why are intrinsic image dimensions important in responsive interfaces? Long Answer Questions1. Explain the mobile-first approach and discuss how it supports progressive enhancement and maintainability. 2. Describe how Flexbox, Grid, and intrinsic sizing can be combined in a responsive page architecture. 3. Explain the role of fluid typography in responsive design, including the benefits and risks of using `clamp()`. 4. Discuss how responsive images, art direction, alternative text, and performance are related. 5. Examine the accessibility implications of responsive design across keyboard, touch, zoom, orientation, and reduced-motion contexts. Analytical / Application Questions1. A card component is used in a wide main column and a narrow sidebar. Explain why a container query may be more appropriate than a viewport media query, and propose a layout strategy. 2. A navigation bar overflows at 42rem, but adding a breakpoint at 40rem would cause the labels to wrap unnecessarily at some widths. Analyse the problem and recommend a more robust solution. 3. Design a testing plan for a benefits-application form that must work on phones, tablets, desktops, with zoom, keyboard navigation, portrait and landscape orientation, and slow networks. Justify the conditions selected. 22. Multiple Choice Questions with AnswersQuestion 1Which principle best explains why a breakpoint should be introduced? A. A popular device has reached a predefined width B. The content no longer satisfies its usability or layout constraint C. The browser has loaded a new font D. The developer has completed a component Correct Answer: B. The content no longer satisfies its usability or layout constraint Question 2Which layout system is primarily one-dimensional? A. CSS Grid B. Flexbox C. Container queries D. The picture element Correct Answer: B. Flexbox Question 3What is the main purpose of `minmax(0, 2fr)` in a Grid track? A. To force the track to remain exactly two pixels wide B. To prevent content from appearing in the track C. To allow flexible growth while preventing automatic minimum overflow D. To disable responsive behaviour Correct Answer: C. To allow flexible growth while preventing automatic minimum overflow Question 4A reusable card appears in containers of different widths. Which technique most directly allows the card to respond to its immediate context? A. A device-detection script B. A viewport-only media query C. A container query D. A fixed pixel width Correct Answer: C. A container query Question 5What does the `sizes` attribute help a browser determine? A. The image’s alternative text B. The likely rendered width of a responsive image C. The number of CSS columns D. The user’s preferred color scheme Correct Answer: B. The likely rendered width of a responsive image Question 6Which implementation best supports users who request reduced motion? A. Increasing all transition durations B. Removing focus indicators C. Using a `prefers-reduced-motion` rule to reduce or disable animation D. Replacing semantic elements with images Correct Answer: C. Using a `prefers-reduced-motion` rule to reduce or disable animation Question 7Why is `clamp()` useful for responsive typography? A. It makes text independent of the viewport B. It allows bounded fluid scaling between minimum and maximum values C. It prevents users from zooming D. It converts text into an image Correct Answer: B. It allows bounded fluid scaling between minimum and maximum values Question 8A desktop table becomes unreadably small on a phone. What is the most appropriate first response? A. Reduce the font until the entire table fits B. Disable browser zoom C. Reconsider the information arrangement, such as selective columns or a meaningful mobile view D. Hide the table from all users Correct Answer: C. Reconsider the information arrangement, such as selective columns or a meaningful mobile view Question 9Which practice helps reduce cumulative layout shift from images? A. Removing image dimensions B. Using fixed intrinsic width and height information C. Loading every image at its largest size D. Positioning all images absolutely Correct Answer: B. Using fixed intrinsic width and height information Question 10Why is CSS reordering potentially problematic? A. It always increases image file size B. It can create a visual sequence that conflicts with document and keyboard order C. It prevents Grid from working D. It disables media queries Correct Answer: B. It can create a visual sequence that conflicts with document and keyboard order
|