Application Development
2 - 7
Table Tags
The following table tags are supported:
• <table>—Defines a table
• <tr>—Defines a table row
• <td>—Defines a table cell
• <tbody>—Defines a table body
<table>
The <table> tag defines a table. Inside a <table> tag you can put table headers,
table rows, table cells, and other tables.
The following attributes are supported:
Note
XHTML tables must be properly formatted (should include <tbody> and </tbody>
tags).
Attribute Value/s Description
align Left
center
right
Aligns the table. Deprecated. Use
styles instead.
border Pixels (number, EX: “30” ) Specifies the border width.
Tip: Set border="0" to display
tables with no borders!
cellpaddin
g
Pixels (number, EX: “30” )
%
Specifies the space between the
cell walls and contents
cellspacin
g
Pixels (number, EX: “30” )
%
Specifies the space between cells.
width %
Pixels (number, EX: “30” )
Specifies the width of the table