Return

Tables

HTML ELEMENTS
Start Tag Content End tag Notes
  Element Attribute Value          
< table border=
cellspacing=
cellpadding=
width=
style=

"11"
"1"
"4"
"800"
"margin:0px auto;"
"background-color:pink;"
> only tr row tags or
one caption tag before the tr tag.
</table> This tag is the basis for all data placements on a web page. You must use the <tr> to define each row in the table.
Use the style="margin:0px auto;" to center the table on a page!
< tr align=


valign=


style=

"center"
"left"
"right"
"bottom"
"middle"
"top"
"background-color:cyan;"
"height:40px;"
> th or td table data cell tags only </tr> This tag provides the characterstics for a table row.
<
<
th
td
align=


valign=


colspan=
rowspan=
style=




"center"
"left"
"right"
"bottom"
"middle"
"top"
"2"
"3"
"background-color:yellow;"
"white-space:nowrap;"
"height:100px;"
"width:100px;"
>
>
Any text or image data to be in the table cell. </th>
</td>
These tags provides data cell characterstics for a table.
The th tag are for bold centered table headers cells.
Whereas the td tags are for regular table data cells information.

Return
  © 2003, 2004, 2005, 2006 & 2007 by Charles Muench. All rights reserved.