How to include 2 columns under column heading in html table?

I want to create an html table that should look like this:

enter image description here

I know that I will have to use colspan / rowspan attributes, but how? Can anyone help?

I tried the following:

<table> <thead> <tr> <th>Evaluation</th><th>Approval</th> <th colspan="2" >Points</th> <th>Total</th> <th>Date</th><th>Award Amount</th><th>Last Modified By</th> </tr> </thead> <tbody> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> <tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr> </tbody> </table> 

but it gives me the result like:

enter image description here

Obviously, I need a subtitle in the 3rd heading (dots), how to do this?

+6
source share
2 answers

this is the full table structure

 <table> <tr> <td rowspan="2"></td> <td rowspan="2"></td> <td colspan="2"></td> <td rowspan="2"></td> <td rowspan="2"></td> <td rowspan="2"></td> </tr> <tr> <td></td> <td></td> </tr> </table> 

thanks...

+4
source

Like this:

 <table> <thead> <tr> <th rowspan="2">Evaluation</th> <th rowspan="2">Approval</th> <th colspan="2">Points</th> <th rowspan="2">Total</th> <th rowspan="2">Date</th> <th rowspan="2">Award Amount</th> <th rowspan="2">Last Modified By</th> </tr> <tr> <th>Tangible</th> <th>Intangible</th> </tr> </thead> <tbody> <tr> <td>Al/GL</td> <td>Select</td> <td>col1</td> <td>col2</td> <td>col3</td> <td>col4</td> <td>col5</td> <td>col6</td> </tr> </tbody> </table> 
+16
source

All Articles