FANDOM


The void HTML <col /> element defines a column within a <table> and is used for defining common semantic on all common cells. It is generally found within a <colgroup> element.

Attributes

Attribute Value Description
bgcolor color This non-standard attribute defines the background color of each cell in the column. Valid color names or color codes are accepted as the value.
span positive integer This attribute contains a positive integer indicating the number of additional consecutive columns to apply to the attributes of the <col /> element. If not present, its default value is 0.
Global Attributes

See Global HTML Attributes.


HTML example:

<table border="1" width="400">
<colgroup>
<col align="center" width="150" />
<col align="right" />
</colgroup>
<td>This column is aligned to the center.</td>
<td>This one is aligned to the right.</td>
<tr>
<td>!</td>
<td>?</td>
</tr>
<tr>
<td>!</td>
<td>?</td>
</tr>
</table> 

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.