Book
Submodule 8.3: Form validation
Submodule 8.3: Form validation
Completion requirements
View
- HTML validation
- JavaScript validation
3. Enriching HTML validation
We have added the attribute minlength="4" in the input="text" and the "textarea" fields.
HTML validates this value.
Exercise
- Open the file
exersice08.2.html
in your editor and save it asexersice08.3.03.html
in the folder "yourNameWEB2JS". - Add the attribute minlength="4" in the input="text" and the "textarea" fields.
- Save the file and preview it in your browser. Experiment with the validation.