How to define tfoot tags in HTML
This article mainly introduces how to define the tfoot tag in HTML. It is very detailed and has a certain reference value. Friends who are interested must read it!
HTML tag
Example
HTML table with, and elements:
Month
Savings
Sum
$180
January
$100
February
$80
Browser support
All major browsers support tags.
Label definition and instructions for use
Tags are used to combine the footer contents of an HTML table.
Elements should be used in conjunction with and elements to define parts of the table (footer, header, body).
By using these elements, the browser has the ability to support table body scrolling independent of the table header and footer. When a long table containing a plurality of pages is printed, the header and footer of the form can be printed on each page containing table data.
Tags must be used in situations where, as a child of an element, appears after, and before an element.
Tips and comments
Note: the element must contain one or more tags.
Tip:, and elements do not affect the layout of the table by default. However, you can use CSS to define styles for these elements, thus changing the appearance of the table.
The difference between HTML4.01 and HTML5
In HTML5, any attributes of tags in HTML4.01 are no longer supported.
Global attribute
Tags support the global properties of HTML.
Event attribute
The tag supports the event attribute of HTML.
The above is all the content of the article "how to define tfoot tags in HTML". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!