Browser validation checks form input before submission using validation behavior defined by the HTML specification, without custom code. section 8.3
A registration form can enable browser validation with:
- required fields, which prompt users when left empty. section 8.3
- minlength and maxlength constraints, which reject input outside the specified limits. section 8.3
Tutor registration
Clicking Register with empty required fields or invalid string lengths displays a browser-generated message. Matching the password and confirmation fields requires server-side validation in the Actix handler, which can return the form with an error and preserve entered values. section 8.3
