1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <!--4 Table Labels <table>5 Row Labels <tr>6 column Labels <td> or <th>7 Align:left, center, right8 border: Edge width9 widthTen Height One cellspacing A cellpadding - - Defining Headings the - - <caption> - Align + valign - Put in the internal use of the table before the TR label. + will go along with the table. A at Field Labels - <th> - and <td> users have been. Text is centered in bold - - - Row Labels in <tr> - align: horizontal position to valign: Vertical position Top (top), middle (center), Bottom (end) + - the Column Labels * <td> and <th> $ widthPanax Notoginseng Heigth - Align the valign + colspan: Control of the number of columns A RowSpan: The number of rows that the control occupies the - + <Head> - <Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312" /> $ <title>Table labels for HTML</title> $ </Head> - - <Body> the <Center><H3>My form</H3></Center> - <TableBorder= "1"width= "The "Align= "Center"cellspacing= "0"cellpadding= "5"bgcolor= "#999999"bordercolor= "#00FF00">Wuyi <caption><H2>My form</H2></caption> the <TR> - <th>Number</th> Wu <th>Name</th> - <th>Age</th> About <th>Gender</th> $ </TR> - <TR> - <TD>1</TD> - <TD>Zhangsan</TD> A <TD>30</TD> + <TD>Man</TD> the </TR> - <TR> $ <TD>2</TD> the <TD>Lisi</TD> the <TD>30</TD> the <TD>Man</TD> the </TR> - <TR> in <TD>3</TD> the <TD>Wangwu</TD> the <TD>30</TD> About <TD>Man</TD> the </TR> the </Table> the </Body> + </HTML>
Table labels for HTML