1. Home
  2. Computing & Technology
  3. Web Design / HTML

Build a 2x2 Table

By Jennifer Kyrnin, About.com

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:
  1. First open the table
  2. Open the first row with the tr tag
  3. Open the first column with the td tag
  4. Write the second row exactly as the first
  5. Then close the table
  6. Write the contents of the cell
  7. Close the first cell and open the second
  8. Write the contents of the second cell
  9. Close the second cell and close the row
Tips:
  1. Use the border='1' attribute to add a border to your table.
  2. Tables can be used to display data or to arrange the layout of a page.
What You Need:
  • HTML Editor -or-
  • Text Editor
Explore Web Design / HTML
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. Tables
  7. Build a 2x2 Table>

©2009 About.com, a part of The New York Times Company.

All rights reserved.