Book
Submodule 9.3: Form validation
Submodule 9.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
exersice09.2.html
in your editor and save it asexersice09.3.03.html
in the folder "Exercises". - 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.