The ______ attribute is a boolean attribute that specifies whether an input field must be filled out before submitting a form.

  • mandatory 
  • necessary 
  • obligatory 
  • required 
The required attribute is a boolean attribute that indicates whether an input field must have a value before the form can be submitted. If an input field has the required attribute, and the user tries to submit the form without filling that field, the browser will display an error message prompting the user to input a value. This attribute ensures that crucial information is not missed when a form is submitted. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *