cells
Summary
Retrieves a collection of all cells in the table row or in the entire table.
Applies to | ? |
---|
This example uses the cellspacing attribute and the cellSpacing property to change the spacing between two cells.
<table id="oTable" border="0" cellspacing="10">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
:
<button onclick="oTable.cellSpacing=20">Larger spacing</button>
<button onclick="oTable.cellSpacing=5">Smaller spacing</button>
Syntax
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 11.3.3
See also
Related pages
- tabletable
- cellPaddingcellPadding
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]