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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access