Home >Web Front-end >HTML Tutorial >How to use the html thead tag
tag definition and usage 1. In html, the tag is used to combine html tables The header content is usually used together with the 2. The tag must be a child element of the 3. The tag, basic attributes of the tag (no longer supported by html5) align right: the alignment of the content in the element (values: left, center ,justify,char). char: The character in the element is used for text alignment (value: character). charoff: The offset of the first alignment character of the content in the element (value: number). valign: The vertical alignment of the content in the element (values: top, middle, bottom, baseline). tag supports html global attributes and html event attributes Format Instance operation result: tag element, and is applied after the
<thead>
<tr>
<td>......</td>
</tr>
......
</thead>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>html< tbody>标签笔记</title>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>thead1</th>
<th>thead2</th>
<th>thead3</th>
</tr>
</thead>
<tfoot>
<tr>
<td>tfoot1</td>
<td>tfoot2</td>
<td>tfoot3</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>tbody1</td>
<td>tbody2</td>
<td>tbody3</td>
</tr>
</tbody>
</table>
</body>
</html>
The above is the detailed content of How to use the html thead tag. For more information, please follow other related articles on the PHP Chinese website!