You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!
HTML <nav>
요소는 현재 페이지 안 또는 다른 페이지로 가는 링크를 보여주는 페이지의 한 구획을 말합니다. 주로 태그 안에 메뉴, 목차, 색인 등이 들어갑니다.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
- 컨텐츠 범주 플로우 컨텐츠, 구획 컨텐츠, 보이는 컨텐츠.
- 허용된 컨텐츠 플로우 컨텐츠.
- 태그 생략 None, both the starting and ending tag are mandatory.
- 허용된 부모 요소 플로우 컨텐츠를 허용하는 모든 요소
- 허용된 ARIA 역할 없음
- DOM 인터페이스
HTMLElement
속성
이 요소는 전역 속성만을 포함합니다.
사용 일람
- 문서의 모든 링크가 <nav> 요소 안에 있을 필요는 없습니다. <nav> 요소는 주요 블럭의 탐색 링크를 위해 사용해주세요; 전형적으로
<footer>
요소는 보통<nav>
에 필요없는 링크의 리스트를 소유합니다. - 문서는 여러개의
<nav>
태그를 소유할수 있습니다. 예를 들면, 하나는 사이트 탐색에, 다른 하나는 내부 페이지 탐색을 위해 사용할수 있습니다. - 장애를 가진 사용자가 이용하는 스크린 리더와 같은 사용자 에이전트는 처음 콘텐츠가 랜더링될 때 이 요소를 제거할 것인지를 결정할 수 있습니다.
예제
<nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </nav>
명세
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<nav>' in that specification. |
Living Standard | No change since latest W3C snapshot. |
HTML5 The definition of '<nav>' in that specification. |
Recommendation | Initial definition |
브라우저 호환성
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.