1.
Tags
…
During the web page creation process, some independent logical parts are divided and placed in atag. This
A label acts like a container. A logical section is a set of interrelated elements on a page. For example, an independent column section in a web page is a typical logical part.
## & lt; p ID = "Pigram name" & gt; ... & lt;/p & gt; to make the logic clearer, we can set a name for this independent logic part, use ID#Attribute to provide a unique name for
, just like the ID number uniquely identifies our identity and must be unique.
2. table tag Table on the webpage
Four elements to create a table: table, tbody, tr, th, td
a,
b,
…: When there is a lot of table content, the table will be downloaded and displayed a little bit, but if the tag is added, the table will have to wait for the table content. It will not be displayed until everything is downloaded. Such as the code in the codeEditor on the right.c,
d,
e,
f. The number of columns in the table depends on the number of data cells in a row.
<table> <tbody> <tr> <th>班级</th> <th>学生数</th> <th>平均成绩</th> </tr> <tr> <td>一班</td> <td>30</td> <td>89</td> </tr> <tr> <td>二班</td> <td>35</td> <td>85</td> </tr> <tr> <td>三班</td> <td>32</td> <td>80</td> </tr> </tbody> </table>
Summary: The table table displays no table lines in the browser before adding css style. The header, that is, the text in th is bold and centered by default.
<style type="text/css"> table tr td,th{border:1px solid #000;} </style>
Add a summary to the table