files/en-us/web/api/htmltablesectionelement/index.md
{{ APIRef("HTML DOM") }}
The HTMLTableSectionElement 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 sections, that is headers, footers and bodies ({{HTMLElement("thead")}}, {{HTMLElement("tfoot")}}, and {{HTMLElement("tbody")}}, respectively) in an HTML table.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("HTMLElement")}}.
align attribute. It indicates the alignment of the element's contents with respect to the surrounding context. The possible values are "left", "right", and "center".HTMLCollection is live and is automatically updated when rows are added or removed.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".Inherits methods from its parent, {{domxref("HTMLElement")}}.
index given in parameter, in the section. If the index value is -1 the last row is removed; if it smaller than -1 or greater than the amount of rows in the collection, a {{DOMxRef("DOMException")}} with the value IndexSizeError is raised.index position. If the index is -1, the new row is appended to the collection. If the index is smaller than -1 or greater than the number of rows in the collection, a {{DOMxRef("DOMException")}} with the value IndexSizeError is raised.{{Specifications}}
{{Compat}}