<!DOCTYPE html>
<html>
<head>
<title>內部CSS</title>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css"> //內部CSS
table, th, td{
border:1px solid black;
border-collapse: collapse;
}
table{
width:100%;
text-align: center;
}
</style>
</head>
<body>
<table>
<caption>My animals</caption>
<tr>
<th>Animals</th>
<th>Amount</th>
</tr>
<tr>
<td>Lion</td>
<td>36</td>
</tr>
<tr>
<td>Elephant</td>
<td>25</td>
</tr>
</table>
</body>
</html>
留言列表