Advertisement
Home Open Editor ❯

HTML <textarea> disabled Attribute

Example

<form action="action.php">
  <textarea disabled name="textareaText">Hello world!</textarea>

  <input type="submit" value="Submit">
</form>

Try this code ❯

Meaning

The disabled attribute is used to turn off a form control.

Elements will not be submitted, nor can they receive any focus from the keyboard or mouse.

Disabled form controls will not be part of the tabbing order. The browser also can gray out the form that is disabled, to indicate to the user that the form control is inactive.


Standard Syntax

HTML: <textarea disabled>...</textarea>

XHTML: <textarea disabled="disabled">...</textarea>


Advertisement

Attribute Values

Value Description
disabled This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement