HTML/CSS/Table Tags/colgroup

Материал из Web эксперт
Перейти к: навигация, поиск

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