The HTML table uses the table label. The table tag contains a tr(table row) sub-label, and thetr also contains th(table head) and TD(table Data) sub-tags such as nested structures
Code Demo
1 <TableBorder= "1"width= "All">2 <TR>3 <th>Name</th>4 <th>Age</th>5 <th>Sex</th>6 </TR>7 <TR>8 <TD>Xiaohu</TD>9 <TD>19</TD>Ten <TD>Man</TD> One </TR> A </Table>
The effect is:
Th header as part of the table structure, not data, and header text default bold, bold and centered
When reviewing the page elements, you will find that the table below is nested with a level tbody, or you can display the declaration tbody in the code snippet.
Property:
The properties of table are Border,width,height,bgcolor (background color), background (background image), BorderColor,
cellspacing (spacing between cells), cellpadding (margin of text within a cell)
The TD properties are align(position),valign(vertical Align vertical) [Top,middle,bottom],colspan( Column span cross-column ),rowspan( cross-line )
The following effects
HTML Learning Notes (eight) table