Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6228779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:26:52+00:00 2026-05-24T09:26:52+00:00

In HTML we can use <tbody> and <thead> . Which works fine with a

  • 0

In HTML we can use <tbody> and <thead>.

Which works fine with a ‘normal’ table.

<table>
  <thead>
    <tr>
      <th>col1</th>
      <th>col2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>data1-1</td>
      <td>data1-2</td>
    </tr>
  </tbody>
</table>

However sometimes there is a rotated table:

<table>
  <tr>
    <th>col1</th>
    <td>data1-1</td>
  </tr>
  <tr>
    <th>col2</th>
    <td>data1-2</td>
  </tr>
</table>

When I use a rotated table I never use <tbody> or <tbody>.

However if I’m correct the <tbody> is mandatory if a <tfoot> is used.

Does a <tr> have to be inside a <tbody>

So my question is:

Is the above statement correct (that it is indeed mandatory if a <tfoot> is used)?

If so where would you add <thead>s and <tbody>s in the second example table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:26:53+00:00Added an answer on May 24, 2026 at 9:26 am

    According to the W3 specification the tbody tag is always mandatory unless your table has only one table body and there is no header and foot sections.

    In your case you can use:

    <table>
      <tbody>
       <tr>
        <td>col1</td>
        <td>data1-1</td>
       </tr>
       <tr>
        <td>col2</td>
        <td>data1-2</td>
       </tr>
      </tbody>
     </table>
    

    That is HTML valid. Since you don’t have “real” header on top of the table I think no header tag applies here. I’m not sure rotated tables are supported by HTML convention, so you basically have a normal table with only body.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Try to download this page: http://www.4shared.com/get/B4AgMkcw/cookies.html I can use wget/firefox to get the whole
I need generate action links outside controllers. I can use Html.Action in Views, Url.Action
In org-mode, when you export HTML projects you can use templates to give all
in html and javascript, I can use keyup, focus, blur to detect most of
HTML Javascript question to get the selected value of a input-select I can use
Can I use specific html if the browser is IE? (Assuming FF is the
Can I use Html Agility Pack to make the output look nicely indented, unnecessary
I can't use PHP in my HTML pages. For example, index.html . I've tried
How can I use Nokogiri with having html entities (like German umlauts) untouched? I.e.:
How can I use Servlets to access the HTML uses of having JSP without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.