WeCodeAcademy

Input Types and Validation

Inputs have many type values and can check themselves with attributes like required, min, max and pattern.

Examplehtml
Open in editor »

Try submitting with the email empty. The browser blocks it for you.

Quick check

Which attribute stops a form being sent with an empty field?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.