โ† All CSS Flashcard Decks

CSS Professional Development 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 CSS Professional Development flashcards as text
  1. Which CSS methodology uses Block, Element, and Modifier naming to keep stylesheets maintainable?

    Answer: BEM

    BEM stands for Block, Element, Modifier and structures class names accordingly.

  2. What does the CSS `will-change` property primarily help with?

    Answer: Hinting the browser to optimize upcoming animations

    `will-change` tells the browser to prepare for a property change so it can optimize rendering.

  3. Which unit is relative to the font size of the root element?

    Answer: rem

    `rem` is relative to the root (html) element's font size.

  4. In a CSS preprocessor like Sass, what symbol denotes a variable?

    Answer: $

    Sass variables are declared with a leading dollar sign.

  5. Which CSS feature lets you define reusable custom properties directly in CSS without a preprocessor?

    Answer: CSS variables (custom properties)

    Native CSS custom properties (var()) provide reusable values without a preprocessor.

  6. What is the main benefit of a CSS reset or normalize stylesheet?

    Answer: Consistent default styling across browsers

    Reset/normalize stylesheets reduce cross-browser default styling inconsistencies.

  7. Which tool processes CSS with JavaScript plugins like Autoprefixer?

    Answer: PostCSS

    PostCSS transforms CSS using JavaScript plugins, including Autoprefixer.