Required Tags
-
<table> defines the table
-
<td> table data cell
-
<tr> table row
-
Commonly used:
-
<th> table heading cell
-
Specialized tags:
-
These are not currently well supported but when browsers do support them this these tags will allow you to have an independently scrollable body on your table while the header and footer of the table remain fixed. Currently you can only achieve this in IE 4+ by using a table with only the information for the header in one table, the body in another table contained in an Iframe and a final table below it with the footer information. Netscape 6 is also supposed to support Iframes but I haven't tried it to see if it works yet. When :
-
<col> table column
-
<caption>
-
<thead>
-
<tfoot>
-
-
-
Example:
-
<table>
<tr>
<th>Item</th><th>Description</th><td>Price</th>
</tr>
<tr>
<td>1</td><td>Widget</td><td>$1.25</td>
</tr>
</table> -
looks like this:
Item |
Description |
Price |
1 |
Widget |
$ 1.025 |
Notes:
-
All tags on this sheet are written in lowercase to conform with xhtml standards in which tags are case sensitive and require tags to be lowercase.
-
In HTML documents attributes must always be quoted, example:
<img scr="logo.gif" alt="company logo">
(Presented November 11, 2000)