Runtyme
All practice problems

Frontend Engineering · HTML & CSS · Intermediate

HTML & CSS practice: Show the Discount

Chai Latte Box is on sale. The price doesn't look like a deal. New price ₹399 must be BOLD and at least 24px. Old price ₹459 must be crossed out.

The problem

  • New price ₹399 must be BOLD and at least 24px.
  • Old price ₹459 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.