Attributes · disabled
Which HTML Disabled Attribute attributes matter?
These attributes decide how the disabled behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does | Docs |
|---|---|---|
disabled | Turns off an input, select, textarea or button: it can't be edited or focused, skips validation and is not submitted. | MDN |
fieldset disabled | Disables every control inside the fieldset, except controls inside its first <legend>, which stay usable. | MDN |
option disabled | Prevents an option from being chosen in a <select> dropdown. Screen readers still announce it as disabled. | MDN |
readonly | The alternative that locks editing on text-like inputs and <textarea> but still submits the value to your backend. | MDN |




