Something like that
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Testing</title> <style type="text/css"> table { width: 100%; border: 1px solid black; } table td, table th { border: 1px solid black; } table .FirstColumn { background-color: #9999dd; } table thead tr { background-color: blue; } table tbody.secondHeader tr { background-color: skyblue; } </style> </head> <body> <table cellpadding="0" cellspacing="0"> <colgroup> <col class="FirstColumn"> </colgroup> <thead> <tr> <th colspan="2">Object</th> <th colspan="2">Openings</th> <th colspan="3">Internal Dimensions</th> <th colspan="3">Weight</th> <th>Volume</th> </tr> </thead> <tbody class="secondHeader"> <tr> <th>Type</th> <th>Size</th> <th>Width</th> <th>Height</th> <th>Length</th> <th>Width</th> <th>Height</th> <th>Max</th> <th>Min</th> <th>Tare</th> <th>Capacity</th> </tr> </tbody> <tbody> <tr> <td>20 std</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>40 std</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>50 std</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>60 std</td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table> </body> </html>
I would suggest looking at the HTML tables and all the options a little deeper, a good place to start would be here , including, but not limited to, concepts such as colgroup , col and colspan
source share