表格用法:
- < table >< /table >是用于表格的标签。
- < tr >< /tr>标签用于定义表格中的行,必须嵌套在< table >< /table >标签中
- < td>< /td>用于定义表格中的单元格,必须嵌套在< tr>< /tr >标签中。
- 字母td指表格数据(table data),即数据单元格的内容。
- < th >< /th >用于定义表格中的表头单元格,必须嵌套在< tr>< /tr >标签中。
- 字母th指表头,即数据表头单元格的内容。会居中加粗显示。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<table>