HTML and CSS Reference
In-Depth Information
the word border without a value results in a 1-pixel border, although this is not valid in
XHTML.
sortable ( sortable="sortable" in XHTML)
WHATWG & HTML5.1 only . When present, it indicates the table's contents may be
sorted by column. It is used in conjunction with the sorted attribute on the th element,
which can be set manually or by the user agent when the user clicks a column.
Examples
A simple table with two rows (two tr elements) and three columns (three td elements in each
tr ):
<table>
<tr>
<td>cell 1</td>
<td>cell 2</td>
<td>cell 3</td>
</tr>
<tr>
<td>cell 4</td>
<td>cell 5</td>
<td>cell 6</td>
</tr>
</table>
The proper element order in the full table model (for details, see the caption , tbody , thead ,
tfoot , colgroup , and col element entries):
<table>
<caption> Employee salaries and start dates </caption>
<colgroup id="employeeinfo" >
<col span="2" >
<col span="1" >
</colgroup>
<thead>
<tr>
<th>Employee</th><th>Salary</th><th>Start date</th>
</tr>
</thead>
Search WWH ::




Custom Search