Easy Tutorial
❮ Met Nav Taintenabled Prop Style Fontstyle ❯

td/thheaders Attribute


Definition and Usage

The headers attribute sets or returns the list of header cells that the current data cell is associated with.

The value of this attribute is a list of names enclosed in quotes, which are the names of different header cells defined by the id attribute.

Syntax

Setting the headers attribute:

Returning the headers attribute:

Note: The headers attribute has no default value.

Value Description
header_ids Defines a space-separated list of header cell ids

Browser Support

All major browsers support the headers attribute.


Example

Displaying the headers for the second row:

❮ Met Nav Taintenabled Prop Style Fontstyle ❯