The <thead> Tag in HTML 5
The <thead> tag is used to create an area of table headings in HTML. When the table spans multiple pages, such as when a large table on a web page is printed, the table heading code within the thead element will appear on each page above the table body.
Multiple Column Heading | ||
---|---|---|
First Column Heading | Second Column Heading | |
This is an example of an HTML table footer. | ||
Row 1 | Row 1 Column 1 | Row 1 Column 2 |
Row 2 | Row 2 Column 1 | Row 2 Column 2 |
This is an actual working demo of the table header example code below. (Do View Source to verify that this page is using the HTML 5 DOCTYPE. You can also verify it is Valid HTML 5 using the HTML Validator. Try using it to validate URLs with HTML examples from other places that claim to be HTML 5 web sites!)
See the tutorial on Creating HTML Tables for full details on how to create an HTML table using the HTML table tags together.