|Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Member Perks | Member Login|
HTML Col Tag Tutorial
Browser SupportThe col tag allows you to apply CSS styles and HTML attributes and values to an entire table column at once, rather than having to add them to each cell on a row-by-row basis.
The col tag can only be used in a table element or colgroup element.
Here's an example of usage:
<table width="460" border="1"> <col style="width: 140px;"> <col width="260"> <col style="background-color: #c1cdba;" width="60"> <tr> <th>Product</th> <th>Description</th> <th>Price</th> </tr><tr> <td>CSS Made Easy</td> <td>Learn CSS the easy way.</td> <td>$27.00</td> </tr><tr> <td>Tables Made Easy</td> <td>All you need to know about tables.</td> <td>$17.00</td> </tr> </table>
While the "col" element is supported by all major browsers, Firefox doesn't recognize many HTML attributes or CSS styles, so you'll need to test what works and what doesn't in Firefox when you use this element.
Here's how that table looks on a web page:
Based on your interest in this tutorial you may also be interested in:
This concludes the HTML Col Tag Tutorial.
Check out SEO for YOU now!
Almost a NewsletterSubscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects