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 · Intermediate
HTML & CSS practice: Newsletter Rush
A form with placeholder text and nothing else. The email box must only accept emails. People typed their PIN code! The button must say “Notify me”.
The problem
- The email box must only accept emails. People typed their PIN code!
- The button must say “Notify me”.
- Must pass: Email box only takes emails.
- Must pass: Button says “Notify me”.
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.