HTML <button> disabled Attribute
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">
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. |