Name
thead — HTML 4.01 | HTML5
Synopsis
<thead> . . . </thead>
Defines the head of the table. The thead
element is one of the “row group”
elements. It may be used to duplicate headers when the full table is
broken over pages or for a static header that appears with a scrolling
table body. It must contain at least one row (tr
).
Notes
In HTML5, the thead
element
may not contain td
elements.
Start/End Tags
HTML 4.01: Required/Optional; XHTML: Required/Required; HTML5: Optional/Optional
Attributes
Same as tbody
.
Example
See table.
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.