Skip to content
SoftwareSolutions.net
Web development

CSS Basics quiz

Understand selectors, the box model, colour, layout and specificity.

Web developmentIntermediateFree certificate

Start the quiz

Enter your name and email. Your name appears on your free certificate, and your email is used to send your certificate details. The quiz has 20 questions. Each question has 4 or 8 options, and some ask you to choose more than one answer.

We store your name, email and score so we can issue your certificate. We only send marketing email to people who tick the box above, and you can unsubscribe at any time.

CSS controls how HTML content looks, from colours and fonts to layout and spacing. Understanding selectors, the box model and specificity helps you predict how a style will apply, which saves hours of debugging. Layout tools such as flexbox and grid are now essential for building responsive pages.

The quiz covers selector types, specificity order, padding and margin, display modes, positioning and media queries. Several questions ask you to select every property that affects spacing, so read each option before deciding.

Hints explain why each answer is correct and highlight the tricky points, such as how specificity is ranked. Finish the quiz to earn a certificate with your score, and try the examples in your browser's developer tools.

Learn CSS by changing one property at a time and watching the result in your browser's developer tools. Inspect the box model of an element, try flexbox for a row of buttons and grid for a card layout, then add a media query so the layout adapts to a narrow screen. Hands-on experiments build understanding faster than reading rules alone.