<col>

Description

This <col> element specifies the properties of a column in a <table>.

Example


<html>
<body>
     <table>
          <col style="color: maroon">
          <col style="color: red">
          <tr>
               <td>col 1: maroon</td>
               <td>col 2: red</td>
          <tr>
               <td>col 1: maroon</td>
               <td>col 2: red</td>
          </tr>
     </table>
</body><!--from   ww w  .j av  a 2 s  .co m-->
</html>

Click to view the demo

The code above generates the following result.

col




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference