Native HTML validation uses attributes such as required, type, and pattern to check form fields in the browser. It can block invalid submissions, display messages, and typically focus the first invalid field. Clear correction guidance can reduce confusion and frustration, especially for people unfamiliar with a form or its requirements. section 6.1.6
Native validation may need support when:
- Browser messages do not give enough guidance for a complex field. section 6.1.6
- A longer form reports one invalid field at a time, making recovery repetitive. section 6.1.6
- More specific messages are needed; JavaScript’s Constraint Validation API can customize them while retaining native constraints. section 6.1.6
