CLOSE

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

Attributes

  • span - How many columns to span.

Help Us to Help You

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

Amount

Link to Us

Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.

HTML Link

Copyright 2019 Step By Step HTML. All Rights reserved.