Advanced Tables
The <colgroup> and <col> elements let you apply styles to entire columns without repeating the style on every cell. Place <colgroup> right after the opening <table> tag (and the optional <caption>).
Column Groups and Styling
Each <col> inside a <colgroup> represents one column, left to right. The span attribute lets a single <col> represent multiple consecutive columns. You can style the column background, width, and border — though only a limited set of CSS properties work on <col>. For accessible, sortable, data-rich tables consider adding aria-sort on sortable headers.