HighDots Forums  

col vs colgroup

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss col vs colgroup in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
yaugin
 
Posts: n/a

Default col vs colgroup - 05-07-2008 , 04:19 PM






What is the practical difference between these elements? They seem to
accomplish the same thing. Is there an example of how one might be
advantageous over the other?

Reply With Quote
  #2  
Old   
David Trimboli
 
Posts: n/a

Default Re: col vs colgroup - 05-07-2008 , 09:59 PM






yaugin wrote:
Quote:
What is the practical difference between these elements? They seem to
accomplish the same thing. Is there an example of how one might be
advantageous over the other?
I'd say the explanation of COL and COLGROUP in the specification
(http://www.w3.org/TR/html401/struct/....html#h-11.2.4) does a pretty
good job of explaining this and giving examples.

The short summary: COL lets you apply certain attributes to columns;
COLGROUP lets you group columns together structurally (the columns have
a meaningful relationship to each other). COL is purely for styling;
COLGROUP has a relational meaning in the table.

--
David
Stardate 8350.7


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.