โ† All CSS Flashcard Decks

(Selectors, Appearance, & Files) Flashcards

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

Read the first 7 (Selectors, Appearance, & Files) flashcards as text
  1. Which file extension is used for an external CSS stylesheet?

    Answer: .css

    External stylesheets use the .css file extension.

  2. What does the selector ".btn.primary" match?

    Answer: Elements having both btn and primary classes

    Chained class selectors with no space match elements carrying all listed classes.

  3. Which pseudo-class styles a link that the user has already visited?

    Answer: :visited

    The :visited pseudo-class targets links the user has previously visited.

  4. How do you add a CSS comment?

    Answer: /* comment */

    CSS comments are wrapped in slash-asterisk delimiters.

  5. Which property makes text bold?

    Answer: font-weight

    font-weight with a value like bold or 700 controls boldness.

  6. What does the adjacent sibling selector "h2 + p" match?

    Answer: A immediately following an

    The + combinator selects the element directly after the first one at the same level.

  7. Which property adds an underline to text?

    Answer: text-decoration

    text-decoration: underline draws a line under the text.