Require as a validator in HTML input field

ยท

1 min read

The HTML required attribute is a boolean attribute, it is a validator control that enables you to mandate a user to enter a value into an input control, this validator is used to make an input control required just as the name implies "REQUIRE". It points out an error whenever a user leaves the input control empty so it restricts a user to provide data before he can submit a form.

Screenshot_20220127-023935.png

how to code it in HTML

Screenshot_20220127-025910.png

Easy right ๐Ÿ˜‰๐Ÿ‘.

ย