required

noun

say it: “rih-KWYRD” /rɪˈkwaɪərd/

An HTML attribute that stops a form from being sent while that field is empty.

What is required?

required — A Boolean attribute that requires a control to have a valid value before submission.

<input name="email" type="email" required>

In a sentence

  • “Adding required to the email input makes the browser ask for it.”

Level: Apprentice · More HTML terms at this level

Updated