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

How To 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 <table>
  2. Open the first row with the tr tag <tr>
  3. Open the first column with the td tag <td>
  4. Write the contents of the cell
  5. Close the first cell and open the second </td><td>
  6. Write the contents of the second cell
  7. Close the second cell and close the row </td></tr>
  8. Write the second row exactly as the first <tr><td> </td><td> </td></tr>
  9. Then close the table </table>

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
More Web Design / HTML How To's

Explore Web Design / HTML

More from About.com

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

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

All rights reserved.