Command Palette

Search for a command to run...

Hectal
Phase 2: The Cascade, Specificity and Inheritance
CSS · Exercise 2 of 6 PreviousNext
Beginner

Style all the text with one rule

Using inheritance, give the whole page dark gray text #333 and the font Georgia, serif by writing them once, on body.

Then make the button follow the page too: same font and same colour, using the inherit keyword.

What Check tests

  1. The body text colour is #333
  2. The heading, paragraph and list items inherit the colour
  3. Everything uses Georgia
  4. The button uses the page font
  5. The button text is #333 too

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.