Example of HTML table column groups - HTML CSS HTML

HTML CSS examples for HTML:Table Column

Description

Example of HTML table column groups

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <title>Example of HTML table column groups</title> 
 </head> <!--   w ww  .j a v a2s  .c  o m-->
 <body> 
  <table border="1" cellpadding="10"> 
   <colgroup> 
    <col style="background: #bed65a;"> 
    <col style="background: #f8d97f;"> 
   </colgroup> 
   <tbody>
    <tr> 
     <td>row 1, cell 1</td> 
     <td>row 1, cell 2</td> 
    </tr> 
    <tr> 
     <td>row 2, cell 1</td> 
     <td>row 2, cell 2</td> 
    </tr> 
   </tbody>
  </table>   
 </body>
</html>

Related Tutorials