โ† All CSS Flashcard Decks

(Text, Borders, and Images) 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 (Text, Borders, and Images) flashcards as text
  1. Which CSS property controls the space between lines of text?

    Answer: line-height

    line-height sets the vertical spacing between lines of text.

  2. What does 'text-transform: uppercase' do?

    Answer: Converts text to all capital letters

    text-transform: uppercase renders all characters as capitals.

  3. Which border style produces a series of dots?

    Answer: dotted

    The dotted value draws the border as a row of dots.

  4. Which property rounds the corners of a border?

    Answer: border-radius

    border-radius rounds the corners of an element's border box.

  5. How do you make a background image not repeat?

    Answer: background-repeat: no-repeat

    background-repeat: no-repeat displays the image only once.

  6. Which property sets the space between individual characters?

    Answer: letter-spacing

    letter-spacing adjusts the horizontal space between letters.

  7. What is the shorthand to set border width, style, and color at once?

    Answer: border: 2px solid red

    The border shorthand takes width, style, then color.