HTML - tags - <colgroup>

#29 of 147

         <caption>Population by Country</caption>
             <col span="2" style="background-color:lightgreen">
                 <td>3 billion</td>
                 <td>1.4 billion</td>

The colgroup element represents a number of table columns that can be styled as a group.

A live example:

Population by country
Country Pop Pop 2030 % change
Total 3 billion 3.3 billion 10%
China 1.38 billion 1.41 billion 2.1%
India 1.31 billion 1.53 billion 16.8%
USA 322 million 356 million 10.6%

N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath