<th> tag is used for specifying a header cell (or table header) within a table.
This tag must be nested inside a
<tr> tag, which in turn must also be nested correctly. You can find out more by viewing the
<table> tag specifications.
Also see the
<td> tag for declaring table data.
<table border = "1"> <tr> <th>Header cell</th> <th>Header cell</th> </tr> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> </table>
The following table shows the attributes that are specific to this tag/element.
|colspan||Specifies the number of columns the current cell spans across.|
|rowspan||Specifies the number of rows the current cell spans across.|
|headers||Specifies a space-separated list of header cells that contain information about this cell. The value needs to correspond with the id of the header cell (which is set using the
|scope||This attribute is used on header cells and specifies the cells that will use this header's information.
- row (current row)
- col (current column)
- rowgroup (current rowgroup)
- colgroup (current column group)
|abbr||Specifies an alternative label for the header cell. For example, this could be an abbreviated form of the full header cell, an expansion, or different phrasing.|
|sorted||Specifies the sort direction of a table column.
- [Empty String]
- reversed [number]
- [number] reversed
Where [number] is any number greater than or equal to 1.
A table must not have two
|Glassy Chat Box Code with Reaction Emojis|
|Dark Neo Brutal Resume Template|
|Bootstrap Timeline with Colorful Lines and Icons|
|Simple Dark Vertical Timeline with Bootstrap|
|Nvidia RTX 3070 Graphic Card Hashrate and Mining Profitability|
|Nvidia RTX 3080 Graphic Card Hashrate and Mining Profitability|
|Flat Photo Frame Template|
|Cute Photo Frame Template|