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 · Hard
HTML & CSS practice: Contact Form Chaos
A form with placeholder text and nothing else. The email box must only accept emails. People typed their PIN code! The button must say “Join the waitlist”.
The problem
- The email box must only accept emails. People typed their PIN code!
- The button must say “Join the waitlist”.
- Must pass: Email box only takes emails.
- Must pass: Button says “Join the waitlist”.
You'll use: HTML · CSS · Accessibility · Responsive design · Forms
Solve it (expert level)3–6 min · You write HTML & CSS
Show a hint
Add type="email" to the email input.
What this teaches (spoiler)
Placeholders are not labels: they disappear on typing and aren't reliably announced. Use real <label>s and the right input types.