All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Frontend Engineering · HTML & CSS · Warm-up
HTML & CSS practice: Sale Price
Tulsi Ginger is on sale. The price doesn't look like a deal. New price ₹69 must be BOLD and at least 28px. Old price ₹109 must be crossed out.
The problem
- New price ₹69 must be BOLD and at least 28px.
- Old price ₹109 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.