HTML Attributes

HTML disabled attribute

Build a form with the HTML form generator

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

html syntaxhtml
disabled

Parameters & Attributes

NameTypeDescription
disabledbooleanDisables 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

Example Snippethtml
<label>  Email  <input type="email" disabled></label>

Browser Compatibility

Minimum supported versions across modern rendering engines

Blink (modern)
Chrome
1
Yes
EdgeHTML / Blink
Edge
12
Yes
Gecko
Firefox
1
Yes
WebKit
Safari
1
Yes
Presto / Blink
Opera
≤12.1
Yes
Desktop support for disabled on input only; other elements, input types, individual values and mobile behavior may differ.
HTML Living Standard
HTML Reference