Column name | Column name |
Column name | Column name |
Column name | Column name |
Extended information:
Use HTML code to create a table with two rows and two columns:
Month | Savings |
---|---|
January | $100 |
Note: The tags in the table in HTML all appear in pairs, starting and ending.
A simple HTML table consists of the table element and one or more tr, th or td elements.
For example:
month | income |
---|---|
January | $100 |
Description: The tr element defines the table row, the th element defines the header, and the td element defines the table unit.
Complex HTML tables include caption, col, colgroup, thead, tfoot and tbody elements.
The above is the detailed content of How to create a table with 3 rows and 2 columns using HTML tags. For more information, please follow other related articles on the PHP Chinese website!