This page is about form validation in HTML.
The javascript counterpart is called the constraint validation API 1).
In short, you set standard HTML attributes that constrain the possible value of form elements.
Check email
HTML validation has its limitations.