<col> </col>

PURPOSE: A tag to define the values for one or more columns in a table. You can only use this element inside a colgroup.

Below is a basic html document. The referenced html tag is in RED. All tags must have a start and a end tag. Most end tags have a / before the tags name, however there are a few that are done differently. The tags that end differently will be noted and highlighted. The order of the start and end tags is also very important to proper display of your page in a web browser.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> The Page Title Goes Here </title>
</head>
<body>
<table border="1">
<colgroup span="3">
<col width="10"></col>
<col width="40"></col>
<col width="70"></col>

</colgroup>
<tr>
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
<td>Item 4</td>
</tr>
</table>
</body>
</html>


Here is the table it creates:

Item 1 Item 2 Item 3 Item 4

© Copyright 2001,2002 Southern Twilight    All rights reserved.

Back To HTML Examples