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: Form Follows Function
The ChaiClub signup form is losing customers on phones. • On my phone, the email box has no @ key. The phone box shows LETTERS. • My mother types in a…
The problem
- • On my phone, the email box has no @ key. The phone box shows LETTERS.
- • My mother types in a box, the grey hint disappears, and she forgets what the box was for.
- • The Sign up “button” does nothing when you press Enter.
- Must pass: Email box shows the @ keyboard.
- Must pass: Phone box shows the number pad.
- Must pass: Every box has a visible label.
- Must pass: Enter key submits the form.
You'll use: HTML · CSS · Accessibility · Responsive design · Forms
Solve it free in your browser3–6 min · You write HTML & CSS
Show a hint
Input types change the phone keyboard: type="email" and type="tel".
What this teaches (spoiler)
Good forms are mostly free HTML: labels tied to inputs, the right input types for mobile keyboards, autocomplete for autofill, and a real submit button.