Runtyme
All practice problems

Frontend Engineering · HTML & CSS · Warm-up

HTML & CSS practice: Price Tag

Kashmiri Kahwa is on sale. The price doesn't look like a deal. New price ₹129 must be BOLD and at least 28px. Old price ₹189 must be crossed out.

The problem

  • New price ₹129 must be BOLD and at least 28px.
  • Old price ₹189 must be crossed out.
  • Must pass: New price is bold.
  • Must pass: New price is at least 28px.
  • 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: 28px; }

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.