<textarea> tag in HTML

The <textarea> tag is used to declare a multi-line text input control.

Important Descriptions

  • The <textarea> input control can hold an unlimited number of characters.
  • Open and close tag required of <textarea>.

Example of <textarea> tag

Result Look Like

Fill Information:

<textarea> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<textarea> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

Attribute Value Description
autofocus autofocus Specifies that a text area should automatically get focus
cols number Defines the visible width of a text area
disabled disabled Specifies that a text area should be disabled
form form_id Specifies one or more forms
maxlength number Specifies the maximum number of characters in textarea
name text Specifies a name for a text area
placeholder text Specifies a short hint of the value in textarea
readonly readonly Specifies that a text area should be read-only
required required Specifies that a textarea is required
rows number Specifies the visible number of lines in a text area
wrap hard
soft
Specifies the text to be wrapped in textarea

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)