The required Attribute

The required Attribute

//a required input field

Username: <input type="text" name="usrname" required>

Specifies that an input field must be filled out before submitting the form.

Works with the following input types: text, search, url, tel, email, password, date pickers, number, checkbox, radio, and file.

Related concepts

The required Attribute — Structure map

Clickable & Draggable!

The required Attribute — Related pages: