HTML and CSS · lesson 20 of 30 · free

CSS test — HTML and CSS for kids

The Part 2 test mixes questions from all nine CSS lessons: what CSS does, CSS rules, selectors, colour and text properties, hex and rgb colours, the box model, which rule wins, flexbox and media queries. Pass it to earn the CSS badge.

▶ Watch how it works

Got it? Practise ↓

Code tip

Rule, then maths — “find which rule applies, then do the sum if there is one”

  1. Find the topic: syntax, selectors, properties, colours, box model, cascade, flexbox or media queries.
  2. Decide which rule or property applies to the element.
  3. For sizes, write the sum down: both sides for the box model, free space for flexbox.

Use it for: Revising CSS before a school test or before starting Part 3.

Worked example: 🖌️ What colour is behind the letters?
p {
  text-align: left;
  font-size: 12px;
  background-color: green;
  color: blue;
} → green

  1. Behind the letters is set by background-color.
  2. background-color: green.

Check: Blue letters on a green background ✓

▶ Watch it animated

✓ Written and checked by the TalentJR team · Updated 13 Oct 2026 · How we make our lessons

✏️ Practice

Work it out in your head or on paper, then tap your answer — or type it and press Check. Stuck? Press “Show me how”.

Right: 0 · Tried: 0

🏁 Lesson 20 test

20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.

🏅 Sign in with Google to earn the 🥇 CSS Champ badge when you pass — and a certificate when you finish all 10 lessons of Part 2 · CSS. You can still take the test without signing in.

🖨️ CSS Worksheet: Practice Test

✨ Free AI tutor

Ask the AI tutor about this lesson

Why does it work? When should you use it? Ask in English, मराठी or हिंदी.

Sign in with Google to ask Free — 20 questions a day.

👩‍🏫 HTML and CSS classes — live online, request a call back

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
We call you backOur team asks what your child needs, then shares timings and fees.
Home tutor?We are still building our list of home tutors — ask on the call if there is one near you.
Badges, certificates & gifts A badge for every lesson you pass, a certificate for every part you finish, plus TalentJR Points for daily practice. Computer worksheets Flowcharts, block coding, spreadsheets and safe internet.