<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8">
<title>頁面標題</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- 可見內容 -->
</body>
</html>
| 標籤 | 用途 | 備註 |
|---|---|---|
| ` | 頁首/區塊標題 | 可包含導航、Logo |
| ` | 主要導航 | 螢幕閱讀器快速跳轉 |
| ` | 主要內容 | 全頁僅一個 |
| ` | 獨立完整內容 | 部落格文、新聞 |
| ` | 主題區塊 | 通常帶標題 |
| ` | 側邊欄/補充 | 廣告、相關連結 |
| ` | 頁尾/區塊尾 | 版權、聯絡資訊 |
`
`(區塊)、``(行內)、``(作品名)
`(行內)、``(保留格式區塊)、``(鍵盤輸入)、``(程式輸出)
<!-- 無序列表 -->
<ul>
<li>項目一</li>
<li>項目二</li>
</ul>
<!-- 有序列表 -->
<ol>
<li>步驟一</li>
<li>步驟二</li>
</ol>
<!-- 定義列表 -->
<dl>
<dt>術語</dt>
<dd>定義說明</dd>
</dl>
<table>
<caption>月份營收統計</caption>
<thead>
<tr><th scope="col">月份</th><th scope="col">金額</th></tr>
</thead>
<tbody>
<tr><td>1 月</td><td>$10,000</td></tr>
<tr><td>2 月</td><td>$12,000</td></tr>
</tbody>
<tfoot>
<tr><th scope="row">總計</th><td>$22,000</td></tr>
</tfoot>
</table>
合併儲存格:`
<form action="/submit" method="post">
<label for="name">姓名</label>
<input type="text" id="name" name="name" required>
<label for="email">Email</label>
<input type="email" id="email" name="email">
<fieldset>
<legend>性別</legend>
<label><input type="radio" name="gender" value="m"> 男</label>
<label><input type="radio" name="gender" value="f"> 女</label>
</fieldset>
<button type="submit">送出</button>
</form>
新型輸入:`date`、`time`、`number`、`tel`、`url`、`color`、`range`、`file` 等,瀏覽器內建驗證與 UI。