Before the prevalence of DIV, the <table> in HTML is powerful and occupies an important place. A variety of text, data, and many elements that can be directly browsed by the audience are included. After the popularization of the DIV framework, we need to spend more time learning the basic knowledge of table:
From this article, we will spend a few minutes to talk about it. <Table> A table is composed of <tr> <th> <td> <caption> and other elements. Just like a team, each element plays its own role and is combined, as a whole, the following is a simple example (try to copy to DW ):
<Html>
<Body>
<H4> the table has no border: <Table>
<Tr>
<Td> 100 </td>
<Td> 200 </td>
<Td> 300 </td>
</Tr>
</Table>
<H4> the table has a border: <Table border = "1">
<Tr>
<Td> 100 </td>
<Td> 200 </td>
</Tr>
</Table>
</Body>
</Html>
-- What is a table with the project name in the header? For example, copy it to DW ):
<Html>
<Body>
<H4> horizontal Header project: <Table border = "1">
<Tr>
<Th> name </th>
<Th> phone number </th>
</Tr>
<Tr>
<Td> night Wind </td>
<Td> 1234567890 </td>
</Tr>
</Table> www.2cto.com
<H4> vertical header: <Table border = "1">
<Tr>
<Th> name </th>
<Td> night Wind </td>
</Tr>
<Tr>
<Th> phone number </th>
<Td> 1234567890 </td>
</Tr>
</Table>
</Body>
</Html>