HTML <tr> title

The title attribute on a <tr> tag adds a tooltip with title text to the table row.

Hovering the mouse over the row will display the tooltip.



A title attribute on a <tr> element.
Hover over each row to view the text inside the title.

First name Last name
Denice Hobermann
Paulo Cornell
  table.tb { width:300px; border-collapse: collapse; }
  .tb th, .tb td { border: solid 1px #777; padding: 5px; }
  .tb thead { background-color:lightblue; }

<table class="tb">
    <tr title="Customer full name">
      <th>First name</th>
      <th>Last name</th>

    <tr title="Information about customer 1001">
    <tr title="Information about customer 1252">

Code explanation

The title attribute is placed in the <tr> opening tag.

The value can be any string. Hover over the tr and a tooltip appears.

Using title

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

The title value displays as a tooltip.

The tooltip displays when the <tr> element is hovered.


<tr 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 <tr>

Last updated on Sep 30, 2023