1. Home
  2. Computing & Technology
  3. Personal Web Pages

Jumping Over Tables - For Fun, Design and Organizing

By Linda Roeder, About.com

1 of 10

Basic Table Code

Basic Table

Basic Table

Creating tables is not as hard as one may think. Once you know the basic codes you will only need to fill in the blanks. After you have learned how to use the basic tags then you should go on to learn some of the more advanced tags. These will help you change the size of your table, the amount of space around your text and many other things.

Here is a listing of the most basic codes that you need to create a very simple table.

Basic Table Codes

<table> - This is the code that you need to start the table.

</table> - This is the code that you need to end the table.

<tr> - Basically, this is the code you need to use to start a new line on your table.

</tr> - This is basically what you need to end a line on your table.

<td> - This is the code that starts one group of text inside your table.

</td> - This is the code that ends your group of text.

<border="1"> - This code goes inside the <table> tag to indicate how thick the border should be. The larger the number entered the thicker the border.

This is what the code for a a basic table will look like using the codes listed above:

<table border="1">

<tr>

<td>line one, columnn one</td><td>line one, columnn two</td><td>line one, columnn three</td>

</tr>

<tr>

<td>line two, columnn one</td><td>line two, columnn two</td><td>line two, columnn three</td>

</tr>

<tr>

<td>line three, columnn one</td><td>line three, columnn two</td><td>line three, columnn three</td>

</tr>

</table>

Below is what this looks like:

Explore Personal Web Pages
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. Personal Web Pages
  4. Tables
  5. Tables - Tables for Web Site Design>

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

All rights reserved.