How to use Column group ?

The colgroup element represents a set of columns. The span attribute specifies how many columns the colgroup element applies to. The irregular cells are counted as part of the column they start in.

The colgroup element includes all of the cells in a column including thead and tfoot, and it matches both th and td elements.

In the following example, the first colgroup in the listing applies to the first three columns in the table, and the other element applies to the next two columns.

            Header 1
            Header 2
            Header 3
            Header 4
        
    
    
        
            AA:BB
            CCDDEE
        
        
           DE
           FLM
        
        
           XY
           ZQ
        
        
           12
           3
        
        
           ABC
        
    
    
        
            Line