Runtyme
All practice problems

Frontend Engineering · HTML & CSS · Hard

HTML & CSS practice: The Grey Button Problem

The Chai Latte Box button is grey and tiny. Mr. Bansal is not amused. 1. The button must be MAROON (#800020). 2. Text at least 18px.

The problem

  • 1. The button must be MAROON (#800020).
  • 2. Text at least 18px.
  • 3. Round corners. Friendly!
  • 4. It must say “Buy now”.
  • Must pass: Button says “Buy now”.
  • Must pass: Button is maroon.
  • Must pass: Text is at least 18px.
  • Must pass: Corners are rounded.

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

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

Change the text inside <button> to “Buy now”.

What this teaches (spoiler)

Brand colours still need readable text on top. Check contrast for every colour pair you ship.

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