--- 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. 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 ``, ` ``` Simply add `required` to an input element #### More Information: MDN article on the input element