Skip to content

Glossary: Web Accessibility

Form validation (pattern, checkValidity())

Also written: pattern, checkValidity(), checkValidity

The pattern attribute holds the format a field must match, such as [0-9]{5} for five digits. checkValidity() returns true if a field passes its own rules (required, type="email", pattern).

Where the book teaches it

Related terms

novalidateError summary