HTML Value Syntax

HTML boolean syntax

Presence enables the flag, absence disables it. An empty value or the attribute name itself is conforming; writing disabled="false" still disables the control and is invalid author syntax. This is a value grammar, not a standalone HTML element.

Formal Syntax & Structure

html syntaxhtml
disabled | disabled="" | disabled="disabled"

Working Example

Example Snippethtml
<button disabled>Unavailable</button><button>Available</button>
HTML Reference