disabled

The disabled boolean attribute makes a form control non-interactive and excludes it from form submission.

Since HTML 2.0 Spec ↗

Syntax

disabled

Examples

<button disabled>Submitting...</button>
<fieldset disabled>
  <input name="a">
</fieldset>
Output
Renders a greyed-out, unclickable button and disables every control inside the fieldset.

Notes

A boolean attribute; presence alone enables it. Disabled controls are skipped in tab order and not submitted. Disabling a <fieldset> disables all descendants. Use aria-disabled when you need a focusable but inert control.

Browser & runtime support

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12

See also