HTML and CSS Reference
In-Depth Information
displayed; vsides indicates the left and right edges both should be displayed; and void
indicates no border should be displayed.
height This attribute specifies the height of the table, in pixels or as a percentage of the
browser window. Be careful, because some browser versions may not support percentage
values for height or may have variations in this calculation when they do support it.
hspace This Netscape-specific attribute indicates the horizontal space, in pixels, between
the table and surrounding content, similar to the same attribute on <img> .
rules This attribute controls the display of dividing rules within a table. A value of all
specifies dividing rules for rows and columns. A value of cols specifies dividing rules for
columns only. A value of groups specifies horizontal dividing rules between groups of table
cells defined by the thead , tbody , tfoot , or colgroup elements. A value of rows specifies
dividing rules for rows only. A value of none indicates no dividing rules and is the default.
summary This attribute is used to provide a text summary of the table's purpose and
structure. This element is used for accessibility, and its presence is important for nonvisual
user agents.
vspace This Netscape attribute indicates the vertical space, in pixels, between the table and
surrounding content, similar to the same attribute on <img> .
width This attribute specifies the width of the table, either in pixels or as a percentage of
the enclosing window.
Examples
<table bgcolor="white" border="2">
<tr>
<td> Cell 1 </td>
<td> Cell 2 </td>
<td> Cell 3 </td>
<td> Cell 4 </td>
</tr>
<tr>
<td> Cell 5 </td>
<td> Cell 6 </td>
</tr>
</table>
<table rules="all" bgcolor="yellow">
<caption> Widgets by Area </caption>
<thead align="center" bgcolor="green" valign="middle">
<tr>
<td> Region </td>
<th> Regular Widget </th>
<th> Super Widget </th>
</tr>
</thead>
Search WWH ::




Custom Search