---
title: Required
---
## Required
The HTML `required` attribute specifies that filling out an input field is mandatory before a form can be submitted.
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.