Caffeinated Coder
Book an appointment
Lesson 09 · Structure and meaning

Form validation

A form should not send nonsense. HTML lets you write the rules right on the inputs: required, type="email", min="13". The browser keeps a validity record of true/false flags for every field, updates it as you type, and refuses to send the form until every field is valid. Follow one sign-up form through three presses of Join, then see why the server must check everything again.

10 min12 steps5 questionsIntermediate
Fig 9 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.