HTML tables are easy to create once you understand the basics of rows and columns. After you have built a 2x2 table, you can build any size table you would like.
Difficulty: Average
Time Required: 10 minutes
Here's How:
- First open the table
<table> - Open the first row with the tr tag
<tr> - Open the first column with the td tag
<td> - Write the contents of the cell
- Close the first cell and open the second
</td><td> - Write the contents of the second cell
- Close the second cell and close the row
</td></tr> - Write the second row exactly as the first
<tr><td> </td><td> </td></tr> - Then close the table
</table>
Tips:
- Use the border="1" attribute to add a border to your table.
- Tables can be used to display data or to arrange the layout of a page.
What You Need
- HTML Editor -or-
- Text Editor

