CSS Basics Quizzes

The core of CSS: how selectors match, which rule wins, how boxes are sized, the units and colors you write every day, and how display and position place elements.

Beginner 5 quizzes · 50 questions about 30 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 CSS Selectors Easy Match the right elements with type, class, id, attribute and combinator selectors. #selectors#combinators#pseudo-classes 10 questions · ~5 min Not started Start
2 Specificity & the Cascade Hard Work out which CSS rule wins when several match, from specificity to !important and layers. #specificity#cascade#inheritance 10 questions · ~8 min Not started Start
3 The Box Model Medium Compute element sizes from content, padding, border and margin, and predict margin collapse. #box-model#box-sizing#margin-collapse 10 questions · ~6 min Not started Start
4 Units & Colors Easy Convert between px, em, rem, %, vw and vh, and read hex, rgb and hsl colors. #units#colors 10 questions · ~5 min Not started Start
5 display & position Medium Predict how block, inline, inline-block and none behave, and where positioned elements end up. #display#position 10 questions · ~6 min Not started Start