# Boolean attribute

*noun*

say it: **“BOO-lee-un AT-ri-byoot”** **/ˈbuːliən ˈætrɪbjuːt/** or **“BOO-lee-un AT-rih-byoot”** **/ˈbuːliən ˈætrɪbjuːt/**

An HTML attribute that is on when it's written and off when it's left out, with no value needed, such as reversed or checked.

## What is **Boolean attribute**?

**Boolean attribute** — An attribute whose presence means true and whose absence means false.

```html
<button disabled>Sold out</button>
```

## In a sentence

- “I added the **boolean attribute** required to the email box, with no value, and now the form won't send without it.”
- “The word reversed on my top-five list is a **boolean attribute**: it's there, so the countdown runs from 5 to 1.”

Level: Novice · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/boolean-attribute
