Is it OK to skip heading levels

前端 未结 3 1690
陌清茗
陌清茗 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:48

    I believe skipping heading levels was considered acceptable but not ideal under WCAG1, but WCAG2 is stricter in this regard. As one example, screen readers will announce the heading level and the skipped number would make it seem like the user had missed some hidden content when they haven't. There shouldn't be any need to skip a level if CSS is used to style the way you'd like.

提交回复
热议问题