-
-
Save ArjanSchouten/0b8574a6ad7f5065a5e7 to your computer and use it in GitHub Desktop.
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 |
From checking the living HTML spec, HTML currently has 25 Boolean attributes.
From the list above, contenteditable
is not one of them (enumerated); frameborder
, scoped
, and typemustmatch
are not part of the HTML standard.
From checking the living HTML spec
where did you find a list?
or did you have to scan the documentation for each tag?
https://html.spec.whatwg.org/multipage/semantics.html#semantics
edit:
answering my own question:
https://html.spec.whatwg.org/#attributes-3
@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.
here is the list created from the original list and applying the suggested changes from @bkdotcom
(I did not verify anything, just mechanically applied the changes):