元素語義變更
a 無 href 時為佔位符;內部允許 flow content(如 article、input、span)。
address 可被 article、aside、nav、section 限定範圍(舊為全域)。
b:純排版強調,不含重要性(關鍵字、產品名)。標題用 h1-h6,強調用 em,重要用 strong,高亮用 mark,其餘才用 b。
cite:標示引用來源(書名、報告等),不再用於人名。
dl:表示 name-value 群組,不再單純為定義列表。
head 不再允許包含 object 子元素。
hr:表示主題變化,顯示為水平線,不再單純為分隔線。
i:表示不同語氣/意見/術語/外語慣用語等,或斜體排版。
label:瀏覽器不再自動將焦點從 label 移至控件,除非平台介面標準化。
menu:重新定義,適用於工具列、右鍵選單。
s:標示不再準確/相關內容,建議改用 del。
small:呈現旁註/免責/版權等小字體;不取消 em/strong 的強調/重要性。
strong:表示重要性,非語氣更重的強調。
u:表示模糊/錯誤/專有名詞等需下劃線標示的文字。
屬性變更
li 的 value、ol 的 start 重新啟用(HTML4 曾限制)。value 為索引值非排序值。範例:前十大電影倒序列表,可用 li value="10"... 或 ol reversed 簡化。
a、area 的 target 重新啟用(配合 iframe 等極實用)。
script、style 的 type 不再為必填(預設分別為 ECMAScript、CSS)。
table 的 border 僅允許 "1" 或空字串。
- 仍允許但建議替代:
script language(須為 "JavaScript" 且不衝突 type)、a name(改用 id)、img 等元素的 width/height 不再接受百分比。
範例:電影排名(li value)
<figure>
<figcaption>The top 10 movies of all time</figcaption>
<ol>
<li value="10"><cite>Josie and the Pussycats</cite>, 2001</li>
<li value="9"><cite lang="sh">Црна мачка, бели мачор</cite>, 1998</li>
...
<li value="1"><cite>Ratatouille</cite>, 2007</li>
</ol>
</figure>
範例:使用 ol reversed
<figure>
<figcaption>The top 10 movies of all time</figcaption>
<ol reversed>
<li><cite>Josie and the Pussycats</cite>, 2001</li>
...
<li><cite>Ratatouille</cite>, 2007</li>
</ol>
</figure>