HTML Tables with Colgroup

The `` and `` elements in HTML allow you to apply styles to specific columns in a table. Tailwind CSS provides utilities to style these tables effectively. Below are examples demonstrating how to use these elements with Tailwind CSS.

Table with Colgroup and Col

Header 1 Header 2 Header 3
Data 1 Data 2 Data 3
Data 4 Data 5 Data 6

Table with Specific Column Widths

Header 1 Header 2 Header 3
Data 1 Data 2 Data 3
Data 4 Data 5 Data 6