files/en-us/web/api/htmltablerowelement/index.md
{{ APIRef("HTML DOM") }}
The HTMLTableRowElement interface provides special properties and methods (beyond the {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("HTMLElement")}}.
HTMLCollection is live and is automatically updated when cells are added or removed.-1.-1.Inherits methods from its parent, {{domxref("HTMLElement")}}.
index. If index is -1, the last cell of the row is removed. If index is less than -1 or greater than the amount of cells in the collection, a {{DOMxRef("DOMException")}} with the value IndexSizeError is raised.index position in the row. If index is -1, the new cell is appended to the collection. If index is less than -1 or greater than the number of cells in the collection, a {{DOMxRef("DOMException")}} with the value IndexSizeError is raised.[!WARNING] These properties have been deprecated and should no longer be used. They are documented primarily to help understand older code bases.
align attribute. It indicates the alignment of the element's contents to the surrounding context. The possible values are "left", "right", and "center".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.HTMLTableRowElement.ch. This property was optional and was not very well supported.valign attribute and can have one of the following values: "top", "middle", "bottom", or "baseline".{{Specifications}}
{{Compat}}