RachelPautler.com

The blessing of the Lord brings wealth, and He adds no trouble to it.
- Proverbs 10:22 NIV

Cooking Poetry HTML Artwork Links Romance Home

Tables

Tables may seem self explanatory, but they can be used for so many things in HTML. They can be used in the traditional way of organizing data into columns. However, they may also be used to align text next to a picture (instead of just above or below). They can also be used for representing calendars. Some people even use them instead of frames.

A table is denoted by the tags:

bullet<TABLE> . . . </TABLE> -- This defines the beginning and end of the table.
bullet<TH> . . . </TH> -- This defines the beginning and end of the table heading.
bullet<TR> . . . </TR> -- This defines the beginning and end of the table row.
bullet<TD> . . . </TD> -- This defines the beginning and end of each table data, or cell.

Table related attributes include:

bulletBORDER=# -- This may be used to set the size of the border for the 'TABLE' tag. When set to 0, no border will show.
bulletWIDTH=(#% or #) -- This may be used to set the width, as a percentage of the page (or table) or in pixels, in the 'TABLE', 'TH' and 'TD' tags.
bulletHEIGHT=# -- This may be used to set the height of the cell for the 'TR', 'TH', or 'TD' tags.
bulletALIGN=(LEFT, RIGHT, or CENTER) -- This will horizontally align the whatever is between the beginning and ending tags to the left, right, or center in the 'TR', 'TH', or 'TD' tags.
bulletROWSPAN=# -- This may be used to make a cell span across a certain number of rows in the 'TH' or 'TD' tags.
bulletCOLSPAN=# -- This may be used to make a cell span across a certain number of columns in the 'TH' or 'TD' tags.
bulletCELLPADDING=# -- This may be used to add space between the contents and the edges of the cell in the 'TABLE' tag.
bulletCELLSPACING=# -- This may be used to add space between the cells of the table in the 'TABLE' tag.
bulletNOWRAP -- This keeps text from wrapping around inside a cell in the 'TD' tag.
 
Copyright © 2005 Rachel Pautler
Last Modified: Tuesday, July 17, 2007
Send mail to rachel@rachelpautler.com with questions or comments about this web site.