โ† All CSS Flashcard Decks

(Properties, Functions, Elements, & Tables) 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 (Properties, Functions, Elements, & Tables) flashcards as text
  1. Which CSS property specifies how the columns of a table are laid out?

    Answer: table-layout

    table-layout controls the algorithm (auto or fixed) used to lay out table cells.

  2. What does the CSS var() function do?

    Answer: Inserts the value of a custom property

    var() inserts the value of a CSS custom property (variable) like var(--main-color).

  3. Which property sets the typeface used for an element's text?

    Answer: font-family

    font-family specifies a prioritized list of fonts to apply to text.

  4. What does an HTML table's colspan attribute do?

    Answer: Makes a cell span multiple columns

    colspan makes a single cell extend across multiple columns horizontally.

  5. Which property controls the space between flex or grid items?

    Answer: gap

    gap sets the spacing between rows and columns in flex and grid layouts.

  6. What does 'overflow: hidden' do to content that exceeds its container?

    Answer: Clips the overflowing content

    overflow: hidden clips any content that extends beyond the element's box.

  7. Which function defines a color using red, green, and blue channels in CSS?

    Answer: rgb()

    rgb() defines a color from red, green, and blue numeric values.