Name
HTMLTableElement — a <table> in an HTML document
Availability
DOM Level 1 HTML
Inherits from/Overrides
Node → Element → HTMLElement → HTMLTableElement
Properties
-
HTMLTableCaptionElementcaption A reference to the
<caption>element for the table, ornullif there is none.-
readonlyHTMLCollectionrows An array (HTMLCollection) of HTMLTableRowElement objects that represent all the rows in the table. This includes all rows defined within
<thead>,<tfoot>, and<tbody>tags.-
readonlyHTMLCollectiontBodies An array (HTMLCollection) of HTMLTableSectionElement objects that represent all the
<tbody>sections in this table.-
HTMLTableSectionElementtFoot The
<tfoot>element of the table, ornullif there is none.-
HTMLTableSectionElementtHead The
<thead>element of the table, ornullif there is none.
In addition to the properties just listed, this interface defines the
properties in the following table to represent the HTML attributes of
the <table> element.
|
Property |
Attribute |
Description |
|---|---|---|
|
|
|
Horizontal alignment of table in document |
|
|
|
Table background color |
|
|
|
Width of border around table |
|
|
|
Space between cell contents and border |
|
|
|
Space between cell borders |
|
|
|
Which table borders to draw |
|
|
|
Where to draw lines within the table |
|
|
|