Name
TableSection: a header, footer, or body section of a table â DOM Level 2 HTML: Node â Element â HTMLElement â TableSection
Properties
-
readonly HTMLCollection rows
An array (HTMLCollection) of TableRow objects representing the rows in this section of the table.
In addition to the rows
property, this interface defines the following properties, which
represent the attributes of the underlying HTML element:
Property |
Attribute |
Description |
|
|
Default horizontal alignment of cells in this section of the table |
|
|
Default alignment character for cells in this section |
|
|
Default alignment offset for cells in this section |
|
|
Default vertical alignment for cells in this section |
Methods
-
deleteRow( )
Deletes the specified numbered row from this section.
-
insertRow( )
Inserts an empty row into this section at the specified position.
Description
This interface represents a <tbody>
, <thead>
, or <tfoot>
section of an HTML table.
The tHead
and tFoot
properties of a Table are
TableSection objects, and the tBodies
property is an array of
TableSection objects.
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.