Practice mode HTML

Which HTML5 attribute stops a form from being submitted until a field is filled in?

Correct answer A. required

Explanation

Adding the Boolean required attribute to an input makes the browser block form submission until the user enters a value in that field.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

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

Links and website addresses are not allowed in comments.