Program code
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> Create a table line table using CSS </title>
<Style type = "text/CSS" Media = "screen">
<! --/* PR-CSS */
Table {
Border-collapse: collapse;/* key attribute: Merge the outer and outer borders of the table (in fact, the outer border of the table has 2px and 1px, and the outer border has 1px )*/
Border: solid #999;/* set border attributes; style (solid = solid line), color (#999 = gray )*/
Border-width: 1px 0 0 1px;/* set the Border Width: Top right bottom left = Corresponding: 1px 0 0 1px */
}
Table caption {font-size: 14px; font-weight: bolder ;}
Table th, table TD {border: solid #999; border-width: 0 1px 1px 0; padding: 2px ;}
Tfoot TD {text-align: center ;}
-->
</Style>
</Head>
<Body>
<Table>
<Caption> table header </caption>
<Thead>
<Tr> <TH> name </Th> <TH> URL </Th> <TH> time </Th> </tr>
</Thead>
<Tbody>
<Tfoot>
<Tr> <TD colspan = "3"> next page </TD> </tr>
</Tfoot>
<Tr> <TH> Baidu </Th> <TD> http://www.baidu.com </TD> <TD> 2007.01.11 </TD> </tr>
<Tr> <TH> Baidu </Th> <TD> http://www.baidu.com </TD> <TD> 2007.01.11 </TD> </tr>
<Tr> <TH> Baidu </Th> <TD> http://www.baidu.com </TD> <TD> 2007.01.11 </TD> </tr>
</Tbody>
</Table>
</Body>
</Html>