1. The article has various data tables This web page is no exception.
(1), label meaning
cellpadding Attribute setting cell The distance between the border and the cell content.
cellspacing The property sets the distance between cells. .
height Set the height of the table. [Note]: It is best to write the attribute "High" in
table and let it expand automatically. But this can give tr the required height for each row
Code
<html> <head> <title>表格</title> </head> <body> <table border="1px" width="500px" cellpadding="10px" cellspacing="10px"> <caption>表格标题</caption> <tr height="50px"> <th>表头</th> <th>表头</th> </tr> <tr> <td>单元格</td> <td>单元格</td> </tr> </table> </body> </html>
Unordered list attributes:
Hollow circle) square (square)
<html> <head> <title>表格</title> </head> <body> <ul type="circle"> <li>无序列表</li> </ul> </body> </html>
Effect
It does not start from 1 by default but starts from 2)
Code
<html> <head> <title>有序列表</title> </head> <body> <ol type="A"> <li>有序列表</li> <li>有序列表</li> <li>有序列表</li> </ol> </body> </html>
The above is the detailed content of Example tutorials on tables and lists in html. For more information, please follow other related articles on the PHP Chinese website!