<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8"/>
<title>caption</title>
</head>
<body>
<table border = "3" width = "300px" height = "300px">
<caption>
caption
</caption>
<tr>
<td>HTML</td>
<td>HTML1</td>
</tr>
<tr>
<td>http</td>
<td>https</td>
</tr>
</table>
</body>
</html>
caption 元素定义表格标题:
HTML 中表格标题通过 <caption> 定义。
width 宽 单位为px
height 高 单位为px
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8"/>
<title>th</title>
</head>
<body>
<table border = "3" width = "300px" height = "300px">
<caption>
th
</caption>
<tr>
<th&