020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.

Core HTML Objects: Table
[www: JS reference]

The Table object represents an HTML table.
 
For each table tag in an HTML document, a Table object is created.

Table Object Collections elements in a table elements in a table

Collection Description W3C
cells Returns a collection of all <td> or <th> elements in a table No
rows Returns a collection of all <tr> elements in a table Yes
tBodies Returns a collection of all <tbody> elements in a table Yes

Table Object Properties

Property Description W3C
align Deprecated. Sets or returns the alignment of a table according to surrounding text. Use style.textAlign instead D
background Deprecated. Sets or returns the background image of a table. Usestyle.background instead D
bgColor Deprecated. Sets or returns the background color of a table. Usestyle.backgroundColor instead D
border Deprecated. Sets or returns the width of the table border. Use style.borderinstead D
caption Returns the caption of a table Yes
cellPadding Sets or returns the amount of space between the cell border and cell content Yes
cellSpacing Sets or returns the amount of space between the cells in a table Yes
frame Sets or returns which outer-borders (of a table) that should be displayed Yes
height Deprecated. Sets or returns the height of a table. Use style.height instead D
rules Sets or returns which inner-borders (between the cells) that should be displayed in a table Yes
summary Sets or returns a description of the data in a table Yes
tFoot Returns a reference to the tfoot element of a table Yes
tHead Returns a reference to the thead element of a table Yes
width Deprecated. Sets or returns the width of the table. Use style.width instead D

Table Object Methods

Method Description W3C
createCaption() Creates an empty caption element and adds it to the table Yes
createTFoot() Creates an empty tfoot element and adds it to the table Yes
createTHead() Creates an empty thead element and adds it to the table Yes
deleteCaption() Removes the first caption element from the table Yes
deleteRow() Removes a row from the table Yes
deleteTFoot() Removes the tfoot element from the table Yes
deleteTHead() Removes the thead element from the table Yes
insertRow() Creates an empty tr element and adds it to the table Yes