Tables in html are the same things they are in other documents: lots of boxes organizing the pictures and text on the page.
In HTML, there's no way to specify that you want this bit of text to appear in the upper right-hand corner of the screen and that bit to be three lines underneath it, centered, so we use tables to align things.
Every table consists of three tags:
< table >
< tr >
< td >


Tr starts a new horizontal line within the table:
like this

and td breaks those lines up into cells:
like thisand thisand this.

The code for that is:

< table border="2" >
< tr >
< td >
like this
< /td >
< td >
and this
< /td > < td >
and this.
< /td >
< /tr >
< /table >

Tables can get very complicated; you can have tables within a single cell, to break it up even further. You have to make sure to close every single < /table > tag, or else the table won't appear on your screen and the whole page will be blank. With some practice, you can use tables to put anything on your page in the exact position you want it.

You can also use the < pre > tag to align things just right. With the pre and table tags, you can make

when suddenly a White Rabbit with pink eyes ran close by her. There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself, "Oh dear! Oh dear! I shall be late!"

look like this:

when  suddenly  a  White   Rabbit   with   pink   eyes   ran close by her.


There was nothing so very
remarkable in that;

                        nor did Alice think it so
                        very much out of the way to
                        hear the Rabbit say to itself,

"Oh dear! Oh dear! I shall be late!"

The only drawback to remember is that with the pre tag, if your visitor's window is narrower than your text, they won't be able to read it. With the tables, as usual, the text will automatically be sized to fit your screen, but each cell might get really skinny and long as the page compresses.

Is this what you use frames for, too?

Links Images Tables Frames Streamlining Forms Learning More
My home page
Email me