files/en-us/web/api/htmltablecellelement/index.md
{{ APIRef("HTML DOM") }}
The HTMLTableCellElement interface provides special properties and methods (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header cells ({{HTMLElement("th")}}) or data cells ({{HTMLElement("td")}}), in an HTML document.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("HTMLElement")}}.
<th> elements (not on {{HTMLElement("td")}}), specifying an alternative label for the header cell. This alternate label can be used in other contexts, such as when describing the headers that apply to a data cell. This is used to offer a shorter term for use by screen readers in particular; and is a valuable accessibility tool. Usually, the value of abbr is an abbreviation or acronym, but can be any text that's appropriate contextually.<tr>, it returns -1.colspan attribute.id of {{HTMLElement("th")}} elements that represent headers associated with the cell. It reflects the headers attribute.rowspan attribute.scope are: col, colgroup, row, rowgroup, or the empty string ("").No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
[!WARNING] These properties have been deprecated and should no longer be used. They are documented primarily to help understand older code bases.
align attribute, if present, or empty string if not set. It can be used to set the alignment of the element's contents to the surrounding context of "left", "right", and "center". Use the CSS {{cssxref("text-align")}} property instead.axis attribute.bgColor attribute.char and defaults to the decimal points associated with the language, e.g., '.' for English, or ',' for French. This property was optional and was not very well supported.HTMLTableCellElement.ch. This property was optional and was not very well supported.height attribute.nowrap attribute and indicating if cell content can be broken into several lines.valign attribute and can have one of the following values: "top", "middle", "bottom", or "baseline". Use the CSS {{cssxref("vertical-align")}} property instead.width attribute. Use the CSS {{cssxref("width")}} property instead.{{Specifications}}
{{Compat}}