The required attribute is a boolean attribute.
required
When present, it specifies the user is required to select a value before submitting the form.