What Are the Attributes of a TABLE Element

Q

What Are the Attributes of a TABLE Element? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells

✍: FYIcenter.com

A

A "table" element may have the following commonly used attributes:

  • "summary" - Specifies a text string as the summary of the table.
  • "width" - Specifies the width of the table.
  • "border" - Specifies the border width.
  • "frame" - Specifies how the outer borders should be displayed.
  • "cellspacing" - Specifies the space between cells.
  • "cellpadding" - Specifies the space between the cell walls and contents.

"summary" is easy to understand and does not make any difference on the appearance of the table. But other attributes have major impacts on how your table appears in the browser window.

2007-05-11, 4794👍, 0💬