YouTip LogoYouTip

Dom Obj Table

# HTML DOM Table Object * * * ## Table Object The Table object represents an HTML table. A Table object is created each time the tag appears in an HTML document. * * * ## Table Object Collections **W3C:** W3C standard. | Collection | Description | W3C | | :--- | :--- | :--- | | (#) | Returns an array containing all the cells in a table. | No | | (#) | Returns an array containing all the rows in a table. | Yes | | (#) | Returns an array containing all the tbody elements in a table. | Yes | ## Table Object Properties | Property | Description | W3C | | :--- | :--- | :--- | | align | Deprecated. Horizontal alignment of the table in the document. | D | | background | Deprecated. Sets or returns the background of a table. | D | | bgColor | Deprecated. Background color of the table. | D | | border | Deprecated. Sets or returns the width of the table border. instead | D | | (#) | Returns the table caption. | Yes | | (#) | Sets or returns the amount of space between the cell content and cell border. | Yes | | (#) | Sets or returns the amount of space between the cells in a table. | Yes | | (#) | Sets or returns the outer borders of a table. | Yes | | height | Deprecated. Sets or returns the height of a table. instead | D | | (#) | Sets or returns the inner borders (lines) of a table. | Yes | | (#) | Sets or returns a description of the table (overview). | Yes | | (#) | Returns the TFoot object of a table. Returns null if the element does not exist. | Yes | | (#) | Returns the THead object of a table. Returns null if the element does not exist. | Yes | | width | Deprecated. Sets or returns the width of a table. | D | ## Table Object Methods | Method | Description | W3C | | :--- | :--- | :--- | | [createCaption()](#) | Creates a caption element for a table. | Yes | | [createTFoot()](#) | Creates an empty tFoot element in a table. | Yes | | [createTHead()](#) | Creates an empty tHead element in a table. | Yes | | [deleteCaption()](#) | Deletes the caption element and its content from a table. | Yes | | [deleteRow()](#) | Deletes a row from a table. | Yes | | [deleteTFoot()](#) | Deletes the tFoot element and its content from a table. | Yes | | [deleteTHead()](#) | Deletes the tHead element and its content from a table. | Yes | | [insertRow()](#) | Inserts a new row in a table. | Yes |
← Dom Obj TabledataDom Obj Base β†’

YouTip © 2024-2026 | Home | Learn Technology, Build Dreams!

All content is for educational and learning purposes only.