In the previous section, the third villager was active in making progress. In this section, he kept improving. In order to make the product arrangement not too disorderly, he decided to add tables to the products.
Open Notepad and enter the followingWebsite productionCode 1-5, save the file named "nangua.htm" to the desktop.
Back to the desktop, double-click the file nangua.htm. The browser displays the results as shown in Figure 1.8. This interface is cleaner than the previous interface without tables.
Code analysis: tables are defined with<table>tags.The table is divided into rows (using<tr>tags), and each row is divided into data cells (using<td>tags).Td stands for "Table Data", that is, the content of data cells.Data cells can contain text, images, lists, paragraphs, forms, horizontal lines, tables, and so on.In order to better distinguish rows and columns and deepen your impression, take another example. Save the above code as "table. htm" and open it with a browser, as shown in Figure 1.9.The above example shows more intuitively that<tr>represents rows and<td>represents columns.