What does it mean in HTML 5 when an attribute is a boolean?
P粉232793765
P粉232793765 2023-10-20 18:43:19
0
1
889

What does it mean when a property like a hidden property is a boolean property? Can someone explain it in layman's terms?

P粉232793765
P粉232793765

reply all(1)
P粉131455722

As mentioned before, a Boolean property is a property that evaluates to true or false.

However, according to the HTML5 specification - http://www.w3 .org/TR/html5/infrastruct.html#boolean-attributes

Please note that this means that is not allowed in HTML5 .

The correct thing to do is or or or any of them case insensitive and single quotes/no Quoted variant. All of these will evaluate to true.

Considered false only if the attribute is completely missing.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template