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
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.
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.
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.
In a CSS preprocessor like Sass, what symbol denotes a variable?
Answer: $
Sass variables are declared with a leading dollar sign.
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.
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.
Which tool processes CSS with JavaScript plugins like Autoprefixer?
Answer: PostCSS
PostCSS transforms CSS using JavaScript plugins, including Autoprefixer.