Tables: HTML
Overview
| Overview | Tables are the key to successful web page
design; as a way to affect layout they are much more useful and versatile
than frames.
Tables are:
|
||||
| You will want to use tables when you
present content in a grid.
But the power of tables is more obvious when you eliminate the table borders. You can use tables to align text in columns. You can use tables to force HTML to align text and images the way you want them to appear on a page. You can exert even more control on your layout with nested tables (i.e., tables within tables). |
|||||
| Table Terms | Here are some common table terms:
|
||||
| Uses of the Table | You can easily think of many ways to use
a table on a web page.
You can use a table to create a calendar or a weekly or monthly schedule. You can use a table to simulate the look of newspaper columns; simply code a table with one row and two or more columns. Enter the text for each column in a single cell. The cell will expand downward to accommodate the text. |
||||
| Tables and Navigation Bars | Web developers often use tables to organize
their navigation bars. Here is the easiest way to turn a table
into a nav bar:
|
||||
| Example: | |||||
Borderless tables are even more versatile.
You might:
|
|||||
| Example | |||||
|
|||||
| More importantly, you can use borderless tables to help you align text and graphics on your page. By placing text in one table cell and a graphic in another, you can exert more control over your layout than you would with the ALIGN attribute in the IMG SRC tag. | |||||
| When you are using tables to force a particular
layout, you will need to tinker with your file by adjusting the table
and cell properties.
Save and preview the file after every adjustment. |
|||||
| Unfortunately, both Microsoft and Netscape
interpret table codes in different ways.
Therefore it is especially important for you to preview your pages that contain tables in both Microsoft Internet Explorer and Netscape Navigator. |
|||||
Tables: HTML
Overview
The Basic Table
Table Cell Attributes
Advanced Table Design
Web Design Center
Last Revised:
December 2, 2001
© Agatha Taormina