Last active
May 7, 2021 12:14
-
-
Save ArjanSchouten/0b8574a6ad7f5065a5e7 to your computer and use it in GitHub Desktop.
Below is a list of html boolean attributes. All these attributes must be leaved empty, filed with 0|1, filled with on|off, filled with true|false or used as a flag.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async | |
autocomplete | |
autofocus | |
autoplay | |
border | |
challenge | |
checked | |
compact | |
contenteditable | |
controls | |
default | |
defer | |
disabled | |
formNoValidate | |
frameborder | |
hidden | |
indeterminate | |
ismap | |
loop | |
multiple | |
muted | |
nohref | |
noresize | |
noshade | |
novalidate | |
nowrap | |
open | |
readonly | |
required | |
reversed | |
scoped | |
scrolling | |
seamless | |
selected | |
sortable | |
spellcheck | |
translate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bkdotcom, I’ve been preparing an overview for Boolean attributes, too, and had for that gone through https://html.spec.whatwg.org/, at some point looking for
is a boolean
. That search seems to lead to all attributes.PS.
Aforementioned overview is now available at The 25 Boolean Attributes of HTML.