Table Tag

Definition and Usage

The <table> tag defines a table. Inside a <table> tag you can put table headers, table rows, table cells, and other tables.

Optional Attributes
align: aligns the tables. deprecated. uses styles instead.
bgcolor: specifies the background color of the table. deprecated. uses styles instead.
border: specifies the border width.
cellpadding: specifies the space between the cell walls and content.
cellspacing: specifies the space between cells.
frame: specifies which sides of the border surrounding a table will be visible
rules: specifies the horizontal/vertical divider lines.
summary: specifies a summary of the table for speech-synthesizing/non-visual browsers
width: specifies the width of the table

Additional Tags

Example

<table border = "1"> <tr> <td>Cell A</td> <td>Cell B</td> </tr> </table>

Result

Cell A Cell B

They're many different to put in besdies tr, td and th.

Heres a list of other tags you can use http://www.w3schools.com/tags/tag_table.asp


Page Information

  • 10 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts