![]() |
Free HTML TutorialHTML Table Tutorial |
HTML Table 1x1
|
Once we learn how to adjust the cells in a table, we can put text or graphics just about anywhere we want on your own web page. |
|||
|
The table codes all reside within the <table></table> tags.
The border=1 modifier makes the lines around the table and also
between the cells. I've used this as it's easier to see the following
examples. Great layouts are possible with this cool HTML code. The <tr></tr> tags define the rows, while the <td></td> or <th></th> tags define the columns. Notice each of these tags have the opening and closing tags. This is extremely important, as some browsers show a blank page if you get this wrong. |
||||
HTML Table 1x3
|
The difference between the <td> tag and the <th> tag is simply that the <th> tag treats the enclosed text like headings. Notice the indentations. This is not a requirement, but it makes matching up open/close tags so much easier. |
HTML Table 2x3
|
If you haven't noticed the pattern, look closely at this example and compare to the last few examples. Understanding this pattern makes the process easy. |
Color a row or cell
|
|
Make a wider row
|
We threw in an align=center modifier too. Our choices are left, center and right. This can be very useful and the code is shorter than using the <center></center> tags. |
|||||||||||
Turn off borders
|
You can especially see this on the cells B Text and C Text. |
|||||||||||
|
|
|
|
NEXT
|
|
|
Phone: (208)467-6236 FAX: (208)463-9363 |
mtg@makemyownwebpage.com |
MTG EnterPrizes 511-9th Ave. N. Nampa, Id 83687-3347 |
|
Page Created and Maintained by |
|
All Rights Reserved © 2002-08 www.makemyownwebpage.com/tutor/html-tables.htm |