table > tbody > tr > td structure
Table area
- Header thead two。 Form body tbody
- Footer tfoot
Table grid
- Line tr two。 Column th (bold), td
Common attribut
- Align: left | center | right ecifies how tables contained in the document must be aligned
- Bgcolor fines the background color of the table
- Border fines the size of the table border
- Cellpadding fines the space between the contents of the table cell and the border (padding)
- Cellspacing fines the size of space between two cells (margin)
- frame(Obsolete): above| below | hsides | vsides | lhs | rhs | border | box | void fines which edge of the frame surrounding the table must be displayed
<table>
<thead>
<tr>
<th>名称</th>
<th>价格</th>
</tr>
</thead>
<tbody>
<tr>
<td>妖梦</td>
<td>233lt;/td>
</tr>
<tr>
<td>Sep</td>
<td>233lt;/td>
</tr>
</tbody>
<tfoot>
<tr>
<td>共计</td>
<td>466lt;/td>
</tr>
</tfoot>
</table>
Usually tables must have the style border-collapse: collapse, which overlaps cell borders.