HTML <button> Tag with the 'disabled' Attribute
<button disabled> Disabled Button </button>
In the above example we add the
disabled attribute to a button control.
autofocus attribute disables the control. Therefore, if the user tries to use the control, nothing will happen.
This attribute is a boolean attribute. Therefore, if it is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either
- [Empty string]
<button> element creates a button control in an HTML document.
Any contents of the
<button> element appears on the button.
onclick attribute) to make the button actually do something.