HTMLTableSectionElement
The HTMLTableSectionElement interface provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.
Properties
Inherits properties from its parent, HTMLElement.
HTMLTableSectionElement.align-
Is a
DOMStringcontaining an enumerated value reflecting thealignattribute. It indicates the alignment of the element's contents with respect to the surrounding context. The possible values are"left","right", and"center". HTMLTableSectionElement.rowsRead only-
Returns a live
HTMLCollectioncontaining the rows in the section. TheHTMLCollectionis live and is automatically updated when rows are added or removed. HTMLTableSectionElement.ch-
Is a
DOMStringcontaining one single character. This character is the one to align all the cell of a column on. It reflects thecharand default 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. HTMLTableSectionElement.chOff-
Is a
DOMStringcontaining a integer indicating how many characters must be left at the right (for left-to-right scripts; or at the left for right-to-left scripts) of the character defined byHTMLTableRowElement.ch. This property was optional and was not very well supported. HTMLTableSectionElement.vAlign-
Is a
DOMStringrepresenting an enumerated value indicating how the content of the cell must be vertically aligned. It reflects thevalignattribute and can have one of the following values:"top","middle","bottom", or"baseline".
Methods
Inherits methods from its parent, HTMLElement.
HTMLTableSectionElement.deleteRow()-
Removes the row, corresponding to the
indexgiven in parameter, in the section. If theindexvalue is-1the last row is removed; if it smaller than-1or greater than the amount of rows in the collection, aDOMExceptionwith the valueIndexSizeErroris raised. HTMLTableSectionElement.insertRow()-
Returns an
HTMLTableRowElementrepresenting a new row of the section. It inserts it in the rows collection immediately before the<tr>element at the givenindexposition. If theindexis-1, the new row is appended to the collection. If theindexis smaller than-1or greater than the number of rows in the collection, aDOMExceptionwith the valueIndexSizeErroris raised.
Specifications
| Specification |
|---|
| HTML Standard # htmltablesectionelement |
Browser compatibility
BCD tables only load in the browser