Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 25. Client-Side JavaScript Refer... > Table: a <table> in an HTML document

Table: a <table> in an HTML documentDOM Level 2 HTML: Node → Element → HTMLElement → Table

Properties


HTMLElement caption

A reference to the <caption> element for the table, or null if 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, or null if there is none.


TableSection tHead

The <thead> element of the table, or null if 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:

PropertyAttributeDescription
deprecated String align align Horizontal alignment of table in document
deprecated String bgColor bgcolor Table background color
String border border Width of border around table
String cellPadding cellpadding Space between cell contents and border
String cellSpacing cellspacing Space between cell borders
String frame frame Which table borders to draw
String rules rules Where to draw lines within the table
String summary summary Summary description of table
String width width Table width



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial