HTML <button> disabled Attribute

❮ HTML <button> tag

Example

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

Meaning

The disabled Boolean attribute disables the button.


Standard Syntax

HTML: <button disabled>

XHTML: <button disabled="disabled">



Browser Support




Status







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.
❮ HTML <button> tag