How to add multiple header HTML table?

16,368

Have a look at this fiddle

All about colspan and rowspan

<table>
    <thead>
        <tr>
            <th rowspan="2" colspan="1" >
                Client Name
            </th>
            <th rowspan="2" colspan="1">
                Date
            </th>
            <th rowspan="1" colspan="5">
                All Appointments
            </th>
            <th rowspan="1" colspan="3" >
                Fulfilled Appointments
            </th>
        </tr>
        <tr>
            <th>Total number of individual appointments</th>
            <th >Hours Of Care Delivered</th>
            <th>Total Value</th>
            <th>Average Cost Per Hour</th>
            <th>Average Cost Per Hour Per Carer</th>
            <th>Total Number</th>
            <th>Hours Of Care Fulfilled</th>
            <th>Total Value</th>
        </tr>
    </thead>
    <tbody></tbody>
</table>
Share:
16,368
BM RAFIQ
Author by

BM RAFIQ

Hi, Myself BM Rafikul Islam, people call me Rafiq, btw. I love to work with fun, also like watching movies and a food addicted person. I am a Web Developer with 5 years of experience. I have experience on this following topics: HTML5, CSS3, Sass, Javascript, jQuery, PHP, WordPress, MySql. I have damn creative idea's at Front End Design and Back End too. I love to share my idea's what I've acquired, though I don't know much, got very little knowledge.

Updated on June 04, 2022

Comments

  • BM RAFIQ
    BM RAFIQ almost 2 years

    I want to Design a table that has multiple headers. The table design is there:

    Multiple header HTML table design link