HTML disabled attribute
Disables supported controls or elements. Disabled form controls are generally not focusable, validated or submitted. The exact effect depends on the element; disabled="false" still disables. Applicable elements include: <button>, <fieldset>, <input>, <link>, <optgroup>, <option>, <select>, <textarea>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. Disabled form controls are omitted from the form entry list and barred from constraint validation. A disabled fieldset generally disables descendant controls, except descendants of its first legend element. The disabled attribute on link has a distinct stylesheet-specific behavior; the table below covers input only.
Formal Syntax & Structure
disabledParameters & Attributes
| Name | Type | Description |
|---|---|---|
| disabled | boolean | Disables supported controls or elements. Disabled form controls are generally not focusable, validated or submitted. The exact effect depends on the element; disabled="false" still disables. |
Working Example
<label> Email <input type="email" disabled></label>Browser Compatibility
Minimum supported versions across modern rendering engines