<h1>–<h6>: HTML 구획 제목 요소

You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

HTML <h1><h6> 요소는 6단계의 문서 제목을 구현합니다. 구획 단계는 <h1>이 가장 높고 <h6>은 가장 낮습니다.


<h1>-<h6> 요소는 전역 속성만 포함합니다.

사용 일람

  • 제목의 정보는 자동으로 문서의 목차를 만드는 것처럼 사용자 에이전트에 사용될 수 있습니다.
  • 제목 폰트의 크기를 줄이기 위해 낮은 단계를 사용하지 마세요. 대신에 CSSfont-size 속성을 사용하세요.
  • 제목 단계를 건너뛰는 것을 피하세요. 언제나 <h1>로 시작해서, <h2>, 순차적으로 기입하세요.
  • 첫 번째 단계의 제목은 한 페이지에 하나만 사용하세요. HTML5에서의 섹션 정의 in HTML5 문서의 섹션과 아웃라인


모든 제목들

밑의 코드는 모든 단계의 제목을 보여주고, 사용합니다.

<h1>Heading level 1</h1>
<h2>Heading level 2</h2>
<h3>Heading level 3</h3>
<h4>Heading level 4</h4>
<h5>Heading level 5</h5>
<h6>Heading level 6</h6>

이것이 위 코드의 결과입니다:

예제 페이지

밑의 코드는 약간의 제목과 내용을 보여줍니다.

<h1>Heading elements</h1>
<p>Some text here...</p>

<h3>Example 1</h3>
<p>Some text here...</p>

<h3>Example 2</h3>
<p>Some text here...</p>

<h2>See also</h2>
<p>Some text here...</p>

이것이 윗 코드의 결과입니다.

접근성 고려사항

A common navigation technique for users of screen reading software is jumping from heading to heading to quickly determine the content of the page. Because of this, it is important to not skip one or more heading levels. Doing so may create confusion, as the person navigating this way may be left wondering where the missing heading is.


<h1>Heading level 1</h1>
<h3>Heading level 3</h3>
<h4>Heading level 4</h4>


<h1>Heading level 1</h1>
<h2>Heading level 2</h2>
<h3>Heading level 3</h3>


Headings may be nested as subsections to reflect the organization of the content of the page. Most screen readers can also generate an ordered list of all the headings on a page, which can help a person quickly determine the hierarchy of the content:

  1. h1 Beetles
    1. h2 Etymology
    2. h2 Distribution and Diversity
    3. h2 Evolution
      1. h3 Late Paleozoic
      2. h3 Jurassic
      3. h3 Cretaceous
      4. h3 Cenozoic
    4. h2 External Morphology
      1. h3 Head
        1. h4 Mouthparts
      2. h3 Thorax
        1. h4 Prothorax
        2. h4 Pterothorax
      3. h3 Legs
      4. h3 Wings
      5. h3 Abdomen

When headings are nested, heading levels may be "skipped" when closing a subsection.

Labeling section content

Another common navigation technique for users of screen reading software is to generate a list of sectioning content and use it to determine the page's layout.

Sectioning content can be labeled using a combination of the aria-labelledby and id attributes, with the label concisely describing the purpose of the section. This technique is useful for situations where there is more than one sectioning element on the same page.


  <nav aria-labelledby="primary-navigation">
    <h2 id="primary-navigation">Primary navigation</h2>
    <!-- navigation items -->

<!-- page content -->

  <nav aria-labelledby="footer-navigation">
    <h2 id="footer-navigation">Footer navigation</h2>
    <!-- navigation items -->

In this example, screen reading technology would announce that there are two <nav> sections, one called "Primary navigation" and one called "Footer navigation". If labels were not provided, the person using screen reading software may have to investigate each nav element's contents to determine their purpose.


명세 상태 주석
HTML Living Standard
The definition of '<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>' in that specification.
Living Standard  
The definition of '<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>' in that specification.
HTML 4.01 Specification
The definition of '<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>' in that specification.

브라우저 호환성

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
h1Chrome Full support YesEdge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes


Full support  
Full support

같이 보기