THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM TableData Object


TableData Object

The TableData object speaks to a HTML <td> element.

Access a TableData Object

You can get to a <td> component by utilizing getElementById():

var x = document.getElementById("myTd"); Try it

Tip: You can likewise get to a <td> component via looking through the cells gathering of a table row.

Create a TableData Object

You can make a <td> component by utilizing the document.createElement() method:

var x = document.createElement("TD");

TableData Object Properties

Property Description
abbr Not upheld in HTML5.
Sets or restores the estimation of the abbr attribute
align Not upheld in HTML5. Use style.textAlign instead.
Sets or returns the flat arrangement of the substance in an information cell
axis Not bolstered in HTML5.
Sets or returns a comma-isolated rundown of related information cells
background Not upheld in HTML5. Use style.background instead.
Sets or returns the foundation picture of an information cell
bgColor Not bolstered in HTML5. Use style.backgroundColor instead.
Sets or returns the foundation shade of a table
cellIndex Returns the situation of a cell in the cells accumulation of a table row
ch Not bolstered in HTML5.
Sets or returns an arrangement character for an information cell
chOff Not upheld in HTML5.
Sets or returns the level counterbalance of the ch property
colSpan Sets or returns the estimation of the colspan attribute
headers Sets or returns the estimation of the headers attribute
height Not bolstered in HTML5. Use style.height instead.
Sets or returns the tallness of an information cell
noWrap Not upheld in HTML5. Use style.whiteSpace instead.
Sets or returns whether the content in a cell can be wrapped
< rowSpan Sets or returns the estimation of the rowspan attribute
vAlign Not upheld in HTML5. Use style.verticalAlign instead.
Sets or returns the vertical arrangement of the substance inside a cell
width Not upheld in HTML5. Use style.width instead.
Sets or returns the width of an information cell

Related Pages

HTML tutorial: HTML Tables

HTML reference: HTML <td> tag