Validation Attributes

In this lesson, we will cover some very useful HTML attributes that will help us perform automatic validation. Let's begin!

HTML5 extended the <input> tag with new attributes that specify different kinds of automatic validation. With the required attribute you can specify that an input field must be filled out before submitting the form. When you work with text input, use maxlength to define the maximum number of characters allowed in the field.

In the case of numeric values (number, range, and date related input ...

Access this course and 1400+ top-rated courses and projects.