Is it OK to skip heading levels

前端 未结 3 1782
陌清茗
陌清茗 2021-02-07 03:30

I\'ve always frowned upon skipping heading levels in HTML documents, especially for reasons of screenreader accessibility. Additionally the requirement that a page\'s structure

3条回答
  •  耶瑟儿~
    2021-02-07 03:41

    From WCAG 2: G141: Organizing a page using headings:

    To facilitate navigation and understanding of overall document structure, authors should use headings that are properly nested (e.g., h1 followed by h2, h2 followed by h2 or h3, h3 followed by h3 or h4, etc.).

提交回复
热议问题