Name
Table: a <table> in an HTML document — DOM Level 2 HTML: Node → Element → HTMLElement → Table
Properties
-
HTMLElement caption A reference to the
<caption>element for the table, ornullif there is none.-
readonly HTMLCollection rows An array (HTMLCollection) of TableRow objects that represent all the rows in the table. This includes all rows defined within
<thead>,<tfoot>, and<tbody>tags.-
readonly HTMLCollection tBodies An array (HTMLCollection) of TableSection objects that represent all the
<tbody>sections in this table.-
TableSection tFoot The
<tfoot>element of the table, ornullif there is none.-
TableSection tHead 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 |
|
|
|
Summary description of table |
|
|
|
Table width |
Methods
-
createCaption( ) Returns the existing
<caption>for the ...
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