โ† All Web Development Flashcard Decks

HTML and CSS 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 HTML and CSS flashcards as text
  1. Which CSS property prevents a flex or grid item from shrinking below its content size?

    Answer: flex-shrink: 0

    Setting `flex-shrink: 0` prevents the item from shrinking when space is limited, keeping it at its natural size.

  2. What does the HTML `download` attribute on an `` tag do?

    Answer: Prompts the browser to download the linked file instead of navigating to it

    The boolean `download` attribute tells the browser to treat the href as a downloadable file, optionally using the attribute's value as the filename.

  3. Which CSS value for `position` removes an element from the normal document flow and positions it relative to the viewport?

    Answer: fixed

    `position: fixed` takes an element out of the flow and anchors it to the viewport, so it does not scroll with the page.

  4. What is the correct way to add an external CSS file to an HTML document?

    Answer:

    The `` tag with `rel="stylesheet"` in the `` section is the standard method for attaching an external CSS file.

  5. Which CSS property creates space inside an element's border, between the border and the content?

    Answer: padding

    Padding adds space between an element's content and its border, inside the box.

  6. Which HTML5 input type provides a native date picker in most modern browsers?

    Answer: type="date"

    `` renders a native date picker control in supported browsers.

  7. In CSS, what does `overflow: hidden` do when applied to a container?

    Answer: Clips any content that extends beyond the container's bounds

    `overflow: hidden` hides any part of child content that exceeds the container's width or height.

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