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 6020331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:33:10+00:00 2026-05-23T03:33:10+00:00

An accountancy package, which I am converting to a web app, often has table

  • 0

An accountancy package, which I am converting to a web app, often has table constructs like the following:

+----------------+----------------+------------+
| DATE           | ACCOUNT        |    BALANCE |
+----------------+----------------+------------+
| 13/06/2011     | Account One    |      10.00 |
+----------------+----------------+------------+
| 13/06/2011     | Account Two    |      10.00 |
+----------------+----------------+------------+
| 13/06/2011     | Account Three  |      10.00 |
+----------------+----------------+------------+
|                |          TOTAL |      30.00 |
+----------------+----------------+------------+

The problem is the last row. TOTAL clearly has no relationship with the column header, ACCOUNT. Would it be OK if the TOTAL cell is a TH with scope=”row”? Should it also span all the columns to its left? Is this a job for TFOOT?

  • 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-23T03:33:11+00:00Added an answer on May 23, 2026 at 3:33 am

    I’d go for a combination of the th scope="row" and putting the <tfoot> element just after the <thead>. You might also want to put in the headers attribute on each <td> but for such a small table it’s arguable.

    <table>
        <thead>
            <tr>
                <th id="h-date">Date</th>
                <th id="h-account">Account</th>
                <th id="h-balance">Balance</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th scope="row" colspan="2">TOTAL</th>
                <td headers="h-balance">30.00</td>
            </tr>
        </tfoot>
        <tbody>
            <tr>
                <td headers="h-date">13/06/2011</td>
                <td headers="h-account">Account One</td>
                <td headers="h-balance">10.00</td>
            </tr>
            <tr>
                <td headers="h-date">13/06/2011</td>
                <td headers="h-account">Account Two</td>
                <td headers="h-balance">10.00</td>
            </tr>
            <tr>
                <td headers="h-date">13/06/2011</td>
                <td headers="h-account">Account Three</td>
                <td headers="h-balance">10.00</td>
            </tr>
        </tbody>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an object of objects, which I'd like to sort by property... having
This question requires some hypothetical background. Let's consider an employee table that has columns
I have a table containing roles. Many users can be assigned to a role.
I have some text blocks like John+and+Co-Accountants-Hove-BN31GE-2959519 I need a function to extract the
I have a class that should look something like this: class Family_Type1 @people =
Is there explicit support for Single Table Inheritance in Django? Last I heard, the
I have a problem with an inherited database for which the person who originally
I know that normalization has been extensively discussed on Stack Overflow. I've read many
Using SQL Server 2000 Database1.Table1 ID Name Date title 001 Ravi 23-02-2009 Accountant 001
I create the following data on viewDidLoad: - (void)viewDidLoad { [super viewDidLoad]; food =

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.