'colgroup' Example : colgroup : Table Tags HTML CSS TUTORIALS


HTML CSS TUTORIALS » Table Tags » colgroup »

 

'colgroup' Example



    
<html>
<head>
<title>colgroup element example</title>
</head>
<body>
   <table width="500" border="8" cellspacing="5" cellpadding="5" align="center">
      <colgroup span="2" style="color:blue;"></colgroup>
      <colgroup style="color:red;"></colgroup>
      <tr><td>col: 1, group: 1</td>
          <td>col: 2, group: 1</td>
          <td>col: 3, group: 2</td></tr>
      <tr><td>col: 1, group: 1</td>
          <td>col: 2, group: 1</td>
          <td>col: 3, group: 2</td></tr>
      <tr><td>col: 1, group: 1</td>
          <td>col: 2, group: 1</td>
          <td>col: 3, group: 2</td></tr>
   </table>
</body>
</html>
           
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Table Tags
» colgroup