||HTML for Starters
||Lists for Starters
||HTML for People Who Want to Learn -- Tables for Starters|
Tables for Starters
Tables are extremely useful for Web-page builders. Not only can tables be used to tabulate data and information, but they can also be used "behind the scenes" to help the builder design the layout of the page. Underneath this paragraph you see a table being used to display tags, and above this paragraph a borderless table was used to arrange the graphics.
This table lists all of the tags used to create a table. Look over the table, then look at the following example to get a better understanding of how to create a table.
Creating a Table
Now you are ready to take a stab at creating a table. Study this example to see how a table is created. You may want to take another look at Table Elements after looking at the example.
In this example, you are shown how to make the table you see below, a basic table with two columns and three rows.
Start the table
The caption is optional. You probably won't see it used often.
Specify a horizontal row in the table.
Make the headings for the table. This tag is also optional.
Close the first row and start another row.
Enter the contents of the cells in the second row.
Close the second row and start a third row.
Enter the contents of the cells in the third row.
Close the third row and close the table.
This is the table that you get from the example, centered for presentation.
The table in this example is not very impressive, is it? On the next page you will learn the attributes for table tags, and then see how to add them to this table.
Default Cell Width
This table has a border so you can see each individual cell. Notice that the width of the cells is determined by the widest cell in the column.
Last Modified: Saturday, 25-Jul-98 10:22:14 PDT