The <thead>
tag is used to group the header content in an HTML table. The thead
element should be used in conjunction with the tbody
and tfoot
elements.
More : thead
You use <thead>
to encapsulate an entire row (or rows) to designate them as the Table Header. According to the spec,
“This division enables user agents to support scrolling of table bodies independently of the table head and foot. When long tables are printed, the table head and foot information may be repeated on each page that contains table data.”
<th>
, on the other hand, is used to style a specific cell as a header cell rather than an ordinary data cell.
Related Posts:
- Setting table column width
- Setting table column width
- Center-align a HTML table
- Add border-bottom to table row
- Set cellpadding and cellspacing in CSS?
- Removing border from table cells
- How to make HTML table cell editable?
- Make a div fill the height of the remaining screen space
- Why is colspan not applied as expected
- Padding a table row
- Table scroll with HTML and CSS
- Set cellpadding and cellspacing in CSS?
- Table fixed header and scrollable body
- Form inside a table
- Colspan all columns
- Alternate table row color using CSS?
- CSS table td width – fixed, not flexible
- Limit width of HTML table
- td widths, not working?
- How to make a monopoly board using css grid?
- Redirect from an HTML page
- How to horizontally center an element
- How to create an HTML button that acts like a link
- What is the main difference of
and- Why does z-index not work?
- Is it possible to write data to file using only JavaScript?
- Image is not showing in browser?
- Is it possible to write data to file using only JavaScript?
- Adding attribute in jQuery
- Is element block level or inline level?
- XPath //div[contains(text(), ‘string’)] fails to select divs containing ‘string’
- Two divs side by side – Fluid display
- Proper way to make HTML nested list?
- Remove border from IFrame
- CSS horizontal scroll
- mailto using javascript
- Mailto using Javascript?
- Can I set subject/content of email using mailto:?
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- What does the shrink-to-fit viewport meta attribute do?
- What formats can be displayed with type=”application/x-shockwave-flash”
- Placing border inside of div and not on its edge
- How to apply CSS to iframe?
- HTML5 required attribute seems not working
- CSS centred header image
- Relative path in HTML
- How to play a mp3 using Javascript? [duplicate]
- How to outline text in HTML / CSS
- Play videos with iframe in html
- How to call a REST web service API from JavaScript?
- HTML iframe – disable scroll
- How to center content in a Bootstrap column?
- HTML5 Validation Error: body start tag seen but an element of the same type was already open
- Basic CSS – how to overlay a DIV with semi-transparent DIV on top
- difference between width auto and width 100 percent
- Is there a command for formatting HTML in the Atom editor?
- How to show text on image when hovering?
- Is it still valid to use IE=edge,chrome=1?
- How to increase height of textarea using bootstrap rows and columns
- Indent List in HTML and CSS
- What’s the difference between using NAV and DIV around Bootstrap 3 navbars?
- Absolute position is not working
- Position absolute but relative to parent
- How do you specify table padding in CSS? ( table, not cell padding )
- Two Divs next to each other, that then stack with responsive change
- link not working
- Generating a Random Number for HTML
- HTML Links are not working
- How to extract svg as file from web page
- Making an image act like a button
- HTML5 Canvas Rotate Image
- How can I align text directly beneath an image?
- HTML vs SHTML vs PHTML
- Change background color of iframe issue
- jQuery find element by data attribute value
- Keep HTML format when switching from Visual to HTML editor
- Get entire page content (generated HTML in browser)
- Can I force WordPress to use instead of ?
- Add HTML to single post tag
- WordPress “Page not found error” when I edit a page
- How do I put a wordpress blog into my html site?
- how add custom tag/tool in classic editor?
- Attribute Quote Style in WordPress HTML
- Create custom markup to use in posts?
- Adding HTML to posts with certain tags?
- Adding to the WYSIWYG
- How to remove auto generated markup? [closed]
- Is there a common structure for a wordpress formular?
- a generated wordpress page from a form that is inputted by user [closed]
- creates an unnecessary space in content?
- Echo outside HTML
- Add html plugin into wordpress
- WBR tag breaking hyperlinks
- allow html characters on eshop data entry boxes
- Query WordPress Database and Post HTML Table
- theme or plugin or server is outputting html before the init hook fires, how is it possible to prevent this
- How to Know If I’ve Correctly Inserted Alt Attributes Into HTML
- WordPress HTML editor panel is not showing HTML elements
- How to play a video after the end of another one via link?
- Moving from Microsoft Front Page 2003 to WordPress