HTMLTableCellElement Interface


The HTMLTableCellElement is the object used to represent the TH and TD elements.
IDL Definition

Interface HTMLTableCellElement : HTMLElement {

 readonly  attribute  long                       cellIndex;
           attribute  DOMString                  abbr;
           attribute  DOMString                  align;
           attribute  DOMString                  axis;
           attribute  DOMString                  bgColor;
           attribute  DOMString                  ch;
           attribute  DOMString                  chOff;
           attribute  long                       colSpan;
           attribute  DOMString                  headers;
           attribute  DOMString                  height;
           attribute  boolean                    noWrap;
           attribute  long                       rowSpan;
           attribute  DOMString                  scope;
           attribute  DOMString                  vAlign;
};

Semantic Requirements

  1. The cellIndex attribute is the index of this cell in the row.
  2. The abbr attribute is the abbreviation for header cells.
  3. The align attribute is the horizontal alignment of data in a cell.
  4. The axis attribute specifies the names group of related items.
  5. The bgColor attribute specifies the cell background color.
  6. The ch attribute specifies an alignment character for cells in a column.
  7. The chOff attribute is the offset of alignment character.
  8. The colSpan attribute specifies the number of columns spanned by a cell.
  9. The headers attribute specifies a list of id attribute values for header cells.
  10. The height attribute specifies the cell height.
  11. The noWrap attribute supresses word wrapping.
  12. The rowSpan attribute specifies the number of rows spanned by a cell.
  13. The scope attribute specifies the scope covered by header cells.
  14. The vAlign attribute specifies the vertical alignment of data in a cell.
  15. The width attribute specifies the cell width.

If you have comments or suggestions, email me at mbrady@nist.gov