The th tag defines a header cell in an HTML table.
Overview Tablecolspan
= valid non-negative integerrowspan
= valid non-negative integerheaders
= unordered set of unique space-separated tokensscope
= row/ col/ rowgroup/ colgroupThis example uses the table, td, th, and tr.
<table>
<tr>
<th>
This text is in the th
</th>
</tr>
<tr>
<td>
This text is in the tbody.
</td>
</tr>
</table>
A table cell referring to the table header
<table>
<caption>
<p>table 1. List of HTML elements</p>
</caption>
<thead>
<tr>
<th id="c1">Number</th>
<th id="c2">element</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="c1">4.1.1</td>
<td headers="c2">html</td>
</tr>
<tr>
<td headers="c1">4.2.1</td>
<td headers="c2">head</td>
</tr>
</tbody>
</table>
<table>
<caption>
<p>table 1. List of HTML elements</p>
</caption>
<thead>
<tr>
<th scope="row">Number</th>
<th scope="row">element</th>
</tr>
</thead>
<tbody>
<tr>
<td>4.1.1</td>
<td>html</td>
</tr>
<tr>
<td>4.2.1</td>
<td>head</td>
</tr>
</tbody>
</table>
Related specifications
th
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4