Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <tbody> tags


May 05, 2021 HTML Reference Manual


Table of contents


HTML slt;tbody.gt; tags

Please refer to the following example if the label combines one or more of the elements as the main body of the element:

HTML tables with elements of the elements of the .

<table border="1">
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
</table>

Try it out . . .

Browser support

HTML <tbody> tags HTML <tbody> tags HTML <tbody> tags HTML <tbody> tags HTML <tbody> tags

All major browsers support the hashtag.


Label definition and instructions for use

The label is used to combine the body content of the HTML table.

The elements should be used in combination with the elements to specify the various parts of the table (body, header, footer). They appear in the order: thead, tfoot, tbody.

By using these elements, the browser has the ability to support table body scrolling independent of the table header and table footer. When a long table with multiple pages is printed, the table header and footer of the table can be printed on each page that contains the table data.

The label must be used in the following situations: as a child element of the element, it appears after the element of the element.


Tips and comments

Note: The inside of the element must contain one or more labels.

Tip: The default of the elements does not affect the layout of the table. However, you can use CSS to define styles for these elements to change the appearance of the table.

Tip: The element is used to group the header content in the HTML table, while the slt;tfoot element is used to group the table note (footer) content in the HTML table.


The difference between HTML 4.01 and HTML5

In HTML 5, no longer supports any properties of the label in HTML 4.01.


Property

Attributes value describe
align right
left
center
justify
char
HTML5 does not support. 定义 <tbody> 元素中内容的对齐方式。
char character HTML5 does not support. 规定 <tbody> 元素中内容根据哪个字符来对进行文本对齐。
charoff number HTML5 does not support. 规定 <tbody> 元素中内容的第一个对齐字符的偏移量。
valign top
middle
bottom
baseline
HTML5 does not support. 规定 <tbody> 元素中内容的垂直对齐方式。


Global properties

Labels support the global properties of HTML.


The event property

The tag supports the event properties of HTML.