# required

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

## What is **`required`**?

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

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

Level: Apprentice · [More HTML terms at this level](https://www.ask-codey.com/glossary/subjects/html/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/required
