Advertisement
Home Open Editor ❯

HTML <button> disabled Attribute

Example

<button type="button" disabled>Click Me!</button>

Try this code ❯

Meaning

The disabled Boolean attribute disables the button.


Standard Syntax

HTML: <button disabled>

XHTML: <button disabled="disabled">


Advertisement

Attribute Values

Value Description
disabled This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement