col vs colgroup

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yaugin

    col vs colgroup

    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?
  • David Trimboli

    #2
    Re: col vs colgroup

    yaugin wrote:
    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

    Comment

    Working...