Runtyme
All practice problems

Frontend Engineering · HTML & CSS · Hard

HTML & CSS practice: Deal of the Day

Golden Chai is on sale. The price doesn't look like a deal. New price ₹99 must be BOLD and at least 24px. Old price ₹149 must be crossed out.

The problem

  • New price ₹99 must be BOLD and at least 24px.
  • Old price ₹149 must be crossed out.
  • Must pass: New price is bold.
  • Must pass: New price is at least 24px.
  • Must pass: Old price is crossed out.

You'll use: HTML · CSS · Accessibility · Responsive design · Forms

Solve it (expert level)3–6 min · You write HTML & CSS
Show a hint

.price { font-weight: 700; font-size: 24px; }

What this teaches (spoiler)

Emphasis is weight and size, not pale colours. Keep sale colours dark enough to read.

Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.