'colgroup' Example : colgroup « HTML Tag Reference « HTML CSS Reference






'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>
           
      
      








Related examples in the same category

1.'colgroup' Syntax and Note
2.'colgroup' HTML Attributes
3.'colgroup' Event Handlers
4.'colgroup' CSS Attributes and JavaScript Style Properties
5.'colgroup' Microsoft Behaviors
6.'colgroup' JavaScript Properties
7.'colgroup' JavaScript Methods
8.'colgroup' JavaScript Collections
9.'colgroup' JavaScript Objects