HTML · Table and list attributes

headers

Associates a data cell with the header cells that describe it. Complex tables only.

Syntax
headers="h1 h2"

Example

Try it

More in this group

abbr (attribute) colspan reversed rowspan scope span (table attribute) start

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course