English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Usage of <th> headers attribute, the headers attribute specifies one or more header cells associated with the table header cell, online examples demonstrate how to use the <th> headers attribute, browser compatibility, syntax definition, and detailed information about its attribute values.
Specify the related <th> element for each title cell:
<table style="width:100%" border="1"> <tr> <th id="name" colspan="2">Full Name</th> </tr> <tr> <th headers="name">Last Name</th> <th headers="name">Name</th> </tr> </table>Test to see ‹/›
IEFirefoxOperaChromeSafari
The headers attribute has no visual effect in a standard web browser, but can be used by screen readers.
The headers attribute specifies one or more header cells associated with the header cell.
The headers attribute in HTML5 is a new attribute of the <th> tag in HTML.
<th headers="header_id">
Value | Description |
---|---|
header_id | Specifies a list of one or more header cells associated with the header cell, separated by spaces. |