正式說法:A minimal reset normalizes selected user-agent defaults;box-sizing:border-box includes padding and border in the specified box size, while inherited universal rules cover pseudo-elements deliberately。
A minimal reset normalizes selected user-agent defaults;box-sizing:border-box includes padding and border in the specified box size, while inherited universal rules cover pseudo-elements deliberately。
正式說法:A spacing scale is a constrained set of design token values used according to structural relationships;margin-block expresses vertical rhythm in logical flow direction。
A spacing scale is a constrained set of design token values used according to structural relationships;margin-block expresses vertical rhythm in logical flow direction。
正式說法:A component class groups cohesive visual/state rules for a reusable UI unit;a utility class exposes one narrow declaration responsibility intended for composition。
A component class groups cohesive visual/state rules for a reusable UI unit;a utility class exposes one narrow declaration responsibility intended for composition。
正式說法:Semantic elements expose landmark roles according to context;main represents the dominant content and should normally be unique, while navigation landmarks need distinguishable accessible names when multiple exist。
何時使用:建立每一頁共用 shell、skip link 目的地與輔助技術快速導覽時。
修改前後:Before:整頁由無名稱 div 組成。After:header/nav/main/footer 清楚表達區域責任。
header、nav、main、footer landmarks Header, navigation, main, and footer landmarks
白話
landmarks 像建築物的明確區域標示,讓人不用從第一個 div 一路摸索到最後。
正式定義
Semantic elements expose landmark roles according to context;main represents the dominant content and should normally be unique, while navigation landmarks need distinguishable accessible names when multiple exist。