Colgroup Tag

Colgroup Tag


HTML tag

  • When writing in HTML, the tag is used to denote a group of columns within a table. It is useful when you want to format many columns at the same time. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

    Example of code






















    Month Savings
    March $200
    April $300
    May $250


    Example result

    Month Savings

    March $200

    April $300

    May $250

  • As the HTML code indicates, the entire table has a background color of white and the first column is "painted" grey. The table itself has one of our CSS classes applied to it to improve its appearance.

    Deprecated attributes

  • Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the deprecated unique HTML attributes for the tag, as well as a description of each. While these attributes may work with the some versions of HTML, they will eventually be phased out. You should use CSS to adjust the dimensions of this element.

    Attribute Description

  • align Designates the alignment of content inside an attribute.

  • char Designates the character within a column group to align with the rest of the content.

  • charoff Designates the number of characters to offset the column group's content by relative to the char attribute.

  • span Designates the number of columns the element should cover.

  • valign Designates the vertical alignment of content with the element.

  • width Designates how wide the element should be.


    What is an Operating System? » Computer Shortcut Keys and their Functions » Keyboard
    Function Keys
    » Computer Basics - Hardware - Software - Parts

    Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes » English Short Stories for Kids

    Cabin Crew Jobs & Career Advice » Secretary Job Description » Receptionist Job Description » Top 100 Interview Questions and Answers » How to Prepare for an Interview » How to Write a CV » How to Choose a Career » Computer Shortcut Keys and their Functions

    Scholarships in Australia » Scholarships in Austria » Scholarships in Belgium » Scholarships in Canada » Scholarships in Germany » Scholarships in Ireland » Scholarships in Italy » Scholarships in Japan » Scholarships in Korea » Scholarships in Netherlands » Scholarships in Switzerland » Scholarships in UK » Scholarships in USA

    Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes »Scholarships in UK » Scholarships in USA Scholarships in UK »

  • Click here to post comments

    Join in and write your own page! It's easy to do. How? Simply click here to return to Computer Basics FAQ.