HTML Tables

  • Defines an XHTML table to organize data into rows and columns
  • Element caption describes the table’s content
  • The text inside the 'caption' tag is rendered above the table in most browsers

  • A table can be split into three distinct sections:
    Head (theadelement)
    -Table titles
    -Column headers
    Body (tbodyelement)
    -Primary table datadd>
    Foot (tfootelement)
    -Calculation results
    -Footnotes
    Element tr
  • Defines individual table rows
  • Element th: Defines a header cell
  • Element td: Contains table data elements