Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML th headers Attribute

HTML headers attribute

HTML th Tag Reference HTML Tag

Example

Specify the element associated with each header cell:

 

   

 

 

   

   

 

Name
Firsname Lastname

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The headers attribute has no visual effect in ordinary web browsers, but can be used by screen readers.


Definition and Usage

The headers attribute specifies one or more header cells associated with a header cell.


Differences between HTML 4.01 and HTML5

The headers attribute is a new attribute for the tag in HTML5.


Syntax

HTML tag