Validation, Testing, and Form Development
What this topic covers
Build accessible forms with associated labels, required fields, and email validation. Check markup with the Nu Html Checker, inspect layouts in browser tools, and show useful messages for invalid input.
Why does an email input need a label even with native validation?
An email input checks the address format in the browser, and required blocks an empty submit. The label still matters because a programmatically associated label, linked with for and id, gives the control its accessible name that screen readers announce.