Many people may associate tables with charts and data listing, and therefore think that tables are straightforward and unimportant. However, in HTML and the creation of web pages, Tables are the essence of organization, creating complex and professional looking pages. First off, let's get your acquainted with some terminology. Below is a table with 2 rows, 3 columns, and 6 cells. [note: if using Netscape, the '?' are actually arrows: the one next to column is pointing downward and the one next to row is pointing to the left]
<table><tr><td></td></tr></table> However, simply using the above tags, you will create a table with only one row and one cell. Here is an example of how to use the tags to create a table with more than one cell.
Here is an example of how to use the tags to create a table with more than one row.
Here is a list and descriptions of important attributes that can be placed within the specified tag(s) to change the look or style of the table. Symbols such as # or %, that are required to be in the attribute value, are in bold.
Many of the tables used in web pages are invisible, and are used to render precise page compositions. Tables ensure the accuracy in alignment that white space cannot provide. Due to the diverse and complicated use of Tables, we will only discuss the simple, common usage of tables on a page with a border background. If you wish to explore the possibilities of tables, simply go on any commercial web page, go to Edit under the File menu, and, if you are in Netscape, you will see the page in Netscape Composer, which will outline the invisible borders; (in Microsoft, you'll only see the HTML code in Notepad). On a page with a bordered background, one's goal would be to shift all the material off of the border background. You will need to create an invisible table with one cell. If your border scrolled down the left, like in the example, the table/cell will be aligned to the right. If it was on both sides (like on my index page), then align=center...and so on. Another attribute that you need to alter is the width of the table, which has to be altered according to the width of the border, and with trial and error. Usually, I set the width with '%' value instead of pixels, but in both cases, since the width is the width of the table, if the border is still covered, the width value should be decreased. Click here to see an example.
|