HTML textarea tag Attribute values

Attribute Description
autocomplete Specifies whether the textarea field has autocompleted on or off.
autofocus Specifies that the textarea field should automatically receive focus when the page loads.
cols Tells the browser how many average-width characters should fit on a single line, i.e., the number of columns.
dirname Enables setting the text direction of the textarea field after submitting the form.
disabled Specifies that the textarea element is disabled.
form Specifies one or more forms that the <textarea> element belongs to.
maxlength Specifies the maximum number of characters entered into the textarea element.
minlength Defines the minimum number of characters (as UTF-16 code units) of a textarea element.
name Specifies the name of the <textarea> element.
placeholder Specifies the expected value to be displayed before user input in the textarea element.
readonly Specifies that the textarea element is read-only. If the textarea is read-only, then its content cannot be changed but can be copied and highlighted.
required A boolean attribute that specifies that the <textarea> element must be filled out before submitting the form.
rows Specifies the number of visible text lines for the control, i.e., the number of rows to display.
wrap Specifies in which manner the text is to be wrapped in a textarea when a form is submitted.

HTML tag</h1></div>

HTML <textarea> tag is used to define a multi-line plain-text editing control. It’s used in forms to collect user inputs like comments or reviews. Attributes like cols and rows define its size, while the name is needed for form data submission and the ID for label linkage. It renders text in a fixed-width font.

Syntax:

<textarea>....</textarea>

Similar Reads

HTML textarea tag Attribute values

Attribute Description autocomplete Specifies whether the textarea field has autocompleted on or off. autofocus Specifies that the textarea field should automatically receive focus when the page loads. cols Tells the browser how many average-width characters should fit on a single line, i.e., the number of columns. dirname Enables setting the text direction of the textarea field after submitting the form. disabled Specifies that the textarea element is disabled. form Specifies one or more forms that the