Table Data | WebReference

Table Data

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Table Data

<td> ... </td> (opt.)

Description: Defines a cell in a table that contains data.

Browser Compatibility: NN: 1.1+ / IE: 2.0+ / Opera: 4+

Attributes:
  • abbr
  • align
  • bgcolor*
  • char
  • charoff
  • class
  • dir
  • id
  • lang
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • style
  • title
  • valign
  • width*

* Deprecated

Code Example:

<table>
  <tr>
    <td> ... </td>
    <td> ... </td>
    <td> ... </td>
  </tr>
</table>

Comments: The <td> element should always be enclosed within the <tr></tr> element

XHTML Notes: The closing </td> element is required.




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/