【html】html教程3
目錄
- 【html】html教程3
- html表格使用
- 表格中的標簽
html表格使用
表格中的標簽
<table>:定義表格
<caption>:定義表格標題
<th>:定義表格的表頭
<tr>:定義表格的行
<td>:定義表格的單元
<thead>:定義表格的頁眉
<tbody>:定義表格的主體
<tfoot>:定義表格的頁腳
<col>:定義表格的列屬性
一個基礎可以運行的表格如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
<table border="1">
<tr>
<td>單元格1</td>
<td>單元格2</td>
<td>單元格3</td>
</tr>
<tr>
<td>單元格1</td>
<td>單元格2</td>
<td>單元格3</td>
</tr>
</tr>
</table>
</body>
</html>
border:串列的邊框
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/155452.html
標籤:其他
下一篇:場景化分析rem布局原理
