โ† All Web Development Flashcard Decks

Responsive Design Flashcards

7 cards from real Web Development practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Responsive Design flashcards as text
  1. What is the purpose of the `sizes` attribute on an `` element?

    Answer: Tells the browser how wide the image will be displayed at different breakpoints

    The sizes attribute tells the browser how wide the image will be rendered at various viewport widths, enabling smarter srcset selection.

  2. Which CSS Flexbox property controls how items grow to fill available space?

    Answer: flex-grow

    flex-grow specifies how much of the remaining space in the flex container should be assigned to the item.

  3. What does `min-width` in a media query typically represent in a mobile-first approach?

    Answer: The breakpoint at which styles begin to apply going up

    In mobile-first design, min-width media queries add or override styles as the screen gets wider, starting from base mobile styles.

  4. Which CSS function lets you clamp a value between a minimum and maximum?

    Answer: clamp()

    clamp(min, preferred, max) ensures a value never goes below the minimum or above the maximum, useful for fluid typography.

  5. What is the correct way to hide an element visually but keep it accessible to screen readers?

    Answer: position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden

    The visually-hidden / sr-only pattern removes the element from visual flow while keeping it in the accessibility tree.

  6. In CSS Grid, what does the `fr` unit represent?

    Answer: A fraction of the available space in the grid container

    The fr unit represents a fraction of the leftover space in the grid container after fixed-size tracks are accounted for.

  7. Which meta tag is essential for responsive web design to work correctly on mobile browsers?

    Answer:

    The viewport meta tag instructs mobile browsers to set the viewport width to the device width and prevent automatic zoom.

How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy