HTML Attributes

HTML headers attribute

Associates a table cell with th elements in the same table using explicit IDs. Useful for complex header relationships that cannot be expressed clearly using scope alone. Applicable elements include: <td>, <th>. Check each element’s value rules.

Formal Syntax & Structure

html syntaxhtml
headers="qty"

Parameters & Attributes

NameTypeDescription
headersspace-separated header IDsAssociates a table cell with th elements in the same table using explicit IDs. Useful for complex header relationships that cannot be expressed clearly using scope alone.

Working Example

Example Snippethtml
<table>  <tr>    <th id="qty">Quantity</th>  </tr>  <tr>    <td headers="qty">4</td>  </tr></table>
HTML Reference