โ† All CSS Flashcard Decks

(Fundamentals, Colors, and Styling) 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 (Fundamentals, Colors, and Styling) flashcards as text
  1. Which property is used to set the size of text?

    Answer: font-size

    font-size controls the size of text characters.

  2. What does the unit 'px' stand for in CSS?

    Answer: Pixels

    px is an absolute unit representing pixels.

  3. Which CSS rule would set the entire page's background to light blue?

    Answer: body {background-color: lightblue;}

    Targeting the body with background-color colors the whole page area.

  4. In the box model, which layer is outside the border?

    Answer: margin

    Margin is the outermost space surrounding the border.

  5. Which value of 'font-style' makes text slanted?

    Answer: italic

    font-style: italic renders text in a slanted, cursive form.

  6. What does 'text-align: center;' do to a block element's text?

    Answer: Horizontally centers it

    text-align: center horizontally centers inline content within its block.

  7. Which RGB value produces pure green?

    Answer: rgb(0,255,0)

    rgb(0,255,0) is full green with no red or blue.