創建表格的四種標籤
通過下列案例演示,代碼如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>學習表格標籤</title>
</head>
<body>
<table border="1">
<caption>前端三劍客</caption>
<tr>
<th>知識點</th>
<th>重要程度</th>
<th>難度</th>
<th>學習週期</th>
</tr>
<tr>
<th>html</th>
<th>5星</th>
<th>3星</th>
<th>7天</th>
</tr>
<tr>
<th>css</th>
<th>5星</th>
<th>4星</th>
<th>10天</th>
</tr>
<tr>
<th>js</th>
<th>5星</th>
<th>5星</th>
<th>20天</th>
</tr>
</table>
</body>
</html>
運行結果如下:
END
感謝看到這裏的各位讀者朋友們,如果你感到本文寫的不錯,就順手點個贊收藏一下,也可以關注一波~~