HAL-PC Web Technolgies SIG

Mail List | SIG Leader

Basic HTML for Tables

HAL-PC Web Technologies SIG

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:

      1. 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.

      2. In HTML documents attributes must always be quoted, example:
        <img scr="logo.gif" alt="company logo">

Back to Top

(Presented November 11, 2000)

About Us | Site Map | Advanced Search | Privacy Policy | Contact Us | ©1999-2006 HAL-PC Web Technologies SIG Leader Cheryl D. Wise