Assignment 6: Forms
It is possible to use HTML5 to inform users if they have entered information correctly. This is known as “form validation”.
Validation helps ensure the user enters information correctly and with the correct “types” of data. Validation before submitting a form to a server reduces server load and enables users to more quickly see if there are errors in their form.
An example of form validation is the
required attribute. Try pressing the ‘Submit’ button before entering any text: