Contact Number
Email Address

col

col

Definition and Usage

The <col> tag specifies column properties for each column within a <colgroup> element.The <col> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row. The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup>lement.This element allows styling columns using CSS, but only a few attributes will have an effect on the column.The HTML <col> tag allows authors to group together attribute specifications for table columns. The does not group columns together structurally -- that is the role of the element. The elements are empty and serve only as a support for attributes.

Syntax

The <col> tag is written as <col> (no end tag). You can use the span attribute to specify the number of columns to span. Like this:
<table>
	<colgroup>
		<col class="col-1">
		<col span="2" class="normal">
	</colgroup>
	<tr>
		<td>Cell</td>
		<td>Cell</td>
		<td>Cell</td>
	</tr>
</table>