|
||
CATEGORIES Home Getting Started HTML Cheat Sheet Webmaster Tools HTML Help Forum Color Codes Link to us |
||||
Tables, what would we do with out em'. Tables can be a webmaster's best friend, they allow you to neatly align and display information on your web page. How to do it To create a basic table, do the following: First, type out the data you want to appear in the first row of your table, Like so: (In this example well be using football stats) Team Next, place the data that you want to appear in the second row, third row, and so on... Eagles Next, place a <TABLE> before the data you entered for your table. Then, place a </TABLE> after the data you entered for your table. Your code should look something like this: <TABLE> Team</TABLE> Next, place a <TR> tag before the text for each row in your table. Then, place an ending </TR> tag after the text for each row in your table, looks like this: <TABLE> <TR> Team</TR> <TR> Eagles</TR> <TR> Jets</TR> <TR> Little Giants</TR> </TABLE> Next, place a <TH> in front of the text for each header cell. Then, place a </TH> after the text for each header cell. The code looks like this: <TABLE> <TR> <TH>Team</TH></TR> <TR> Eagles</TR> <TR> Jets</TR> <TR> Little Giants</TR> </TABLE> Then place a <TD> tag in front of each data cell. Finally place a </TD> tag at the end of each data cell. Your complete code looks like this: <TABLE> <TR> <TH>Team</TH></TR> <TR> <TD>Eagles</TD></TR> <TR> <TD>Jets</TD></TR> <TR> <TD>Little Giant</TD></TR> </TABLE> Seeing this table in your browser will look like this:
Privacy Policy | Trademark Notices | User Agreement © 2001 TheHTMlSource.com, INC. All Rights Reserved. |