FrontendDeveloper.in

HTML question detail

What does the `required` attribute do in forms?

required enforces client-side validation so users cannot submit until the field has a value.

It improves UX, but server-side validation is still mandatory for security and data integrity.

Back to all HTML questions
Get LinkedIn Premium at Rs 399