Runtyme
All practice problems

Frontend Engineering · HTML & CSS · Intermediate

HTML & CSS practice: On-Brand CTA

The Tulsi Ginger button is grey and tiny. Mr. Bansal is not amused. 1. The button must be ROYAL BLUE (#1a3a8f). 2. Text at least 18px.

The problem

  • 1. The button must be ROYAL BLUE (#1a3a8f).
  • 2. Text at least 18px.
  • 3. Round corners. Friendly!
  • 4. It must say “Add to cart”.
  • Must pass: Button says “Add to cart”.
  • Must pass: Button is royal blue.
  • 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 “Add to cart”.

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.