'cols' establishes the number of columns in a table
<HTML>
<BODY>
<table border="4" cols="4">
<tr><td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
<td>Row 1, Column 4</td>
</tr>
<tr><td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td>Row 2, Column 3</td>
<td>Row 2, Column 4</td>
</tr>
</table>
</BODY>
</HTML>
Related examples in the same category
1. | Fixed Table Sized Columns | | |
2. | Maximum-width Sized Columns | | |
3. | Minimum-width Sized Columns | | |
4. | Column width | | |
5. | Shrinkwrapped Table: width auto, width 20% | | |
6. | Shrinkwrapped Table: 20%, 20%, 20%, 20%, 20% | | |
7. | Equal Content-sized Columns | | |
8. | Fixed Table and Undersized Columns | | |
9. | Sized Table cannot be undersized | | |
10. | stretched table with undersized column | | |
11. | Percentage-proportioned Columns: 50%, 50% | | |
12. | Percentage-proportioned Columns: 20%, 20% | | |
13. | Percentage-proportioned Columns: 80%, 80% | | |
14. | Percentage-proportioned Columns: 80%, 20% | | |
15. | Percentage-proportioned Columns: 80%, 20%, 50% | | |
16. | Column groups | | |