Skip to content
배우기 측정 블로그 Case studies 정보
이 페이지에서
  • Lighthouse 제목 레벨 감사가 실패하는 방법
  • 자원

제목 요소가 내림차순으로 정렬되어 있지 않음

Oct 17, 2019 — 업데이트됨 May 7, 2020
Available in: Español, 日本語, Português, Русский, 中文, English
Appears in: 접근성 감사
이 페이지에서
  • Lighthouse 제목 레벨 감사가 실패하는 방법
  • 자원

Screen readers have commands to quickly jump between headings or to specific landmark regions. In fact, a survey of screen reader users found that they most often navigate an unfamiliar page by exploring the headings.

By using correct heading and landmark elements, you can dramatically improve the navigation experience on your site for users of assistive technologies.

Lighthouse 제목 레벨 감사가 실패하는 방법 #

Lighthouse는 제목이 하나 이상의 레벨을 건너뛰는 페이지에 플래그를 지정합니다.

레벨을 건너뛰는 제목을 표시하는 Lighthouse 감사

예를 들어 페이지 제목으로 <h1> 요소를 사용한 다음 페이지의 주요 섹션에 대해 <h3> 요소를 사용하면 <h2> 레벨을 건너뛰기 때문에 감사에 실패합니다.

<h1>Page title</h1>
<h3>Section heading 1</h3>
…
<h3>Section heading 2</h3>
…
The Lighthouse Accessibility score is a weighted average of all the accessibility audits. See the Lighthouse accessibility scoring post for more information.

잘못 구성된 제목을 수정하는 방법 #

  • 모든 제목 요소가 콘텐츠의 구조를 반영하는 논리적인 숫자 순서를 따르도록 합니다.
  • 제목 텍스트가 관련 섹션의 내용을 명확하게 전달하는지 확인하세요.

예시:

<h1>Page title</h1>
<section>
<h2>Section Heading</h2>
…
<h3>Sub-section Heading</h3>
</section>

제목 구조를 확인하는 한 가지 방법은 "누군가 제목만 사용하여 내 페이지의 개요를 만들었다면 말이 될까요?"라고 묻는 것입니다.

또한 Microsoft의 Accessibility Insights 확장과 같은 도구를 사용하여 페이지 구조를 시각화하고 잘못된 제목 요소를 잡을 수 있습니다.

주의

개발자는 원하는 시각적 스타일을 얻기 위해 제목 레벨을 건너뛰는 경우가 있습니다. 예를 들어, <h2> 텍스트가 너무 크다고 느끼기 때문에 <h3> 요소를 사용할 수도 있습니다. 이는 안티 패턴으로 간주됩니다. 대신, 올바른 순서의 표제 구조를 사용하고 CSS를 사용하여 원하는 대로 표제를 시각적으로 스타일 지정하십시오.

자세한 내용은 제목 및 랜드마크 게시물을 참조하세요.

자원 #

  • 제목 건너뛰기 레벨 감사를 위한 소스 코드
  • 제목 레벨은 1만 증가해야 합니다(Deque University).
마지막 업데이트: May 7, 2020 — 기사 개선하기
Return to all articles
공유
구독

Contribute

  • 버그 신고
  • 소스 보기

관련된 콘텐츠

  • developer.chrome.com
  • Chrome 업데이트
  • 웹 기초
  • 사례 연구
  • 팟캐스트
  • 쇼

연결

  • Twitter
  • YouTube
  • Google Developers
  • Chrome
  • Firebase
  • Google Cloud Platform
  • 전체 제품
  • 약관 및 개인정보 보호
  • 커뮤니티 가이드라인

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies.