Path: blob/main/files/en-us/glossary/boolean/html/index.md
6532 views
------A boolean attribute in HTML is an attribute that can be either true or false.
It is worth noticing that a boolean attribute is true when it is present, and false when it is absent.
Here's an example of a HTML boolean attribute checked: