CLOSE

Help Us Help You

This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online and paying staff members.

Col Tag

The <col> tag is used to set properties to table columns. It is used within the <colgroup> tag.

<table>
    <colgroup>
        <col span="2" style="background:green;"></col>
        <col style="font-weight:bold;"></col>
    </colgroup>
    
    <tr>
        <td>Green BG</td>
        <td>Green BG 2 </td>
        <td>Bold font</td>
    </tr>
</table>

Attributes

  • span - How many columns to span.

Copyright 2016 Step By Step HTML. All Rights reserved.