Jump to content

<col> And <colgroup> Tags


atar.yosef
 Share

Recommended Posts

Ideally, element tags should have a meaning, not just a special appearance. Browsers like IE or Firefox do not care very much about that, but some browsers do, especially bots that read pages for indexes like Google, and also browsers designed for people with disabilities. All you're probably looking at now is appearance. But these other browsers are concerned with the meaning, and a colgroup should mean something different from a column.

Link to comment
Share on other sites

Ideally, element tags should have a meaning, not just a special appearance. Browsers like IE or Firefox do not care very much about that, but some browsers do, especially bots that read pages for indexes like Google, and also browsers designed for people with disabilities. All you're probably looking at now is appearance. But these other browsers are concerned with the meaning, and a colgroup should mean something different from a column.
OK, so what is the difference at the meaning of these two tags?
Link to comment
Share on other sites

A <col> element indicates that all the vertical table cells are related to eachother, forming a column.A <colgroup> element indicates that several columns are related and can be grouped together.

Link to comment
Share on other sites

A <col> element indicates that all the vertical table cells are related to eachother, forming a column.A <colgroup> element indicates that several columns are related and can be grouped together.
Thank you about your relationship, but I already succeed to group several columns together and form (style) them as a one unit by adding the attribute "span" to the <col> element.For this reason, still these two elements are apparently eual.
Link to comment
Share on other sites

For this reason, still these two elements are apparently eual.
Their appearance may be equal, but their meaning is not.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...