Index

back to
Basic Tables


Safe Kids


Missing
Children


Created by
Kids


Cool Places for Kids and Teens


About Me


Links


Your
SafetyTips,
Stories or
Comments


Sign My Guestbook


WEB Pages Tips 'n Tricks


Awards


Rings


e-mail

Safe Kids Banner

Learn, listen, and read!
Help prevent those heart breaking fatalities and injuries
that can be prevented!
Any child's safety is your responsibility!

Golden Rule

TABLETAGS

<TABLE> </TABLE> opens and closes the table borders. The default table has no visible borders. You can make visible borders see BORDER below.

<TR></TR> Is Table Row. This pair of tags is required for each row in the table. The number of pairs with define the number of rows. You can add the ALIGN and VALIGN commands to this tag and make all the cells in the row align the same. See ALIGN and VALIGN below.

<TD></TD> Is Table Data cell. This pair of tags appears between the <TR></TR> tags. Each row does not have to have the same number of cells since a "solid blank" cell will automatically fill in the row. You can put any of the normal HTML tags into a cell, including text, graphics and links. The ALIGN and VALIGN can be used with this pair of tags also. This alignment overrides any set in the row command. Normally the words contained inside a cell will "wordwrap" to fill the cell width. This can be overridden with the command NOWRAP. The font size and color can be changed.

<TH></TH> Is Table Header. The same as <TD> except the font is BOLD and it is automatically aligned center.

<CAPTION></CAPTION> Is the Title or Caption of the table. This pair of tags are between the <table></table> tags but outside of any row or cell. Any normal HTML tag can be used. Captions usually "wordwrap" and center themselves over the table.

BORDER This command appears with the TABLE tag inside the same brackets. <TABLE BORDER=1></TABLE> If this command is not present then the borders around the table will be invisible (which is a nice affect). Remember, the border is STILL there you just can't see it, so making the table without visible borders will not reduce the size. You can make the border width any size you want by increasing the number. A table with a BORDER=10 will appear a little like a 3D frame. By changing the color of your page background you can change the color of your border.

ALIGN This command when placed inside a CAPTION will control whether the CAPTION appears above or below the table. The values are TOP or BOTTOM. The default is TOP.
If you put it inside TR, TH, or TD it will control where the text or graphic inside the table cell or cells will be placed. The values are LEFT, CENTER, RIGHT.

VALIGN This command is place inside TR, TH, TD, and it controls the vertical placement of text or graphics. The values are TOP, MIDDLE, BOTTOM, BASELINE.

NOWRAP This is placed with the TH or TD tag and it prevents any lines of text within a cell from being broken and "wordwrapped". Caution: this could cause you table to be too wide for the browser screen.

COLSPAN You put this with a TH or TD tag and it will make the cell span the specified number of columns in the table. The default is 1.

ROWSPAN This is used the same as COLSPAN except it controls how many rows the cell will span. The default is 1. The cell will not span beyond the last TR.

Back to * Basic Tables *




This page hosted by Get your own Free Home Page