Submodule 8.3: Form 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

  1. Open the file exersice08.2.html in your editor and save it as exersice08.3.03.htmlin the folder "yourNameWEB2JS".
  2. Add the attribute minlength="4" in the input="text" and the "textarea" fields.
  3. Save the file and preview it in your browser. Experiment with the validation.