HTML <textarea> title Attribute

The title attribute on a <textarea> tag adds a tooltip with title text to the textarea.

Hovering the mouse over the textarea will display the tooltip.



A title attribute on a <textarea>.
Hover over the textarea to see the tooltip.

<textarea title="Rembrandt van Rijn" rows="6" cols="75">
  Rembrandt van Rijn was a Dutch draughtsman, painter, and printmaker. 
  An innovative and prolific master in three media, he is generally 
  considered one of the greatest visual artists in the history of
  art and the most important in Dutch art history.

Code explanation

  • The title attribute is placed in the <textarea> opening tag.
  • The value can be any string. Hover over the textarea and a tooltip appears.

Using title

The title attributes attaches additional information to the <textarea> element.

The title value displays as a tooltip.

The tooltip displays when the textarea element is hovered.


<textarea title="value">



Value Description
value A string value. A title can span multiple lines by including newline or carriage-return characters:  &#10;  or  &#013;.

Browser support

Here is when title support started for each browser:

1.0 Sep 2008
1.0 Sep 2002
1.0 Aug 1995
1.0 Jan 2006
1.0 Jan 2003

You may also like

 Back to <textarea>

Last updated on Sep 30, 2023