--- title: Required --- ## Required The HTML `required` attribute is used in an input element to make the input field in a form required to submit the form. This means that the user must fill in the field.
If the user does not fill in the input field, the form will not submit and it will give a message asking the user to fill out the field.

The `required` attribute is applicable to ``, ` ``` #### More Information: MDN article on the input element