<html> 根元素、`lang` 指定語言<head> 元數據容器<body> 可見內容<title> 頁面標題(唯一、SEO 關鍵)<meta> 字符集、視口、SEO、HTTP 模擬<link> 外部資源(CSS、preload、favicon)<script> JavaScript<style> 內聯樣式`
`、``、``、``、``
`(行內)、``(塊)、``(作品標題)
<table>、<caption>、<thead>、<tbody>、<tfoot>、<tr>、<th>、<td><form>(`action`、`method`、`enctype`、`novalidate`)<input> 類型:`text`、`password`、`email`、`number`、`tel`、`url`、`search`、`date`、`time`、`datetime-local`、`month`、`week`、`color`、`checkbox`、`radio`、`file`、`hidden`、`image`、`range`、`reset`、`submit`、`button`<textarea>、`<img>(`src`、`alt`、`width`、`height`、`loading`、`srcset`、`sizes`、`decoding`)<picture> `<video>、`<iframe>、`<canvas>、`<header>、<footer>、<nav>、<main>、<article>、<section>、<aside>、<figure> `<details> `<dialog><div>(區塊)、<span>(行內) —— **無語義,最後手段**<slot>、<template>(Web Components)標籤是 HTML 的詞彙,語義是語法。熟練掌握 100+ 標籤的適用場景,才能寫出結構清晰、機器可讀、易於維護的優質前端代碼。