이 번역은 완료되지 않았습니다. 이 문서를 번역해 주세요.
HTML <html>
요소는 HTML 문서의 루트를 나타냅니다. 모든 다른 요소들은 이 요소의 후손입니다.
- 콘텐츠 범주 없음.
- 허용하는 컨텐츠 하나의
<head>
요소와 그 뒤를 따르는 하나의<body>
요소. - 태그 생략
<html>
요소 내부의 첫번쨰 것이 주석이 아니라면 시작 태그를 생략할 수 있습니다.
<html>
요소 바로 뒤에 주석이 따라오지 않는다면 종료 태그를 생략할 수 있습니다. - 허용하는 부모 요소문서의 루트 요소로써.
또는 복합문서에서 서브문서가 허용되는곳에서. - 허용하는 ARIA 역할없음.
- DOM 인터페이스
HTMLHtmlElement
속성
이 요소는 전역 속성을 포함합니다.
manifest
HTML5- 지역적으로 캐시되어야하는 리소스를 가리키는 매니페스트 리소스의 URI를 나타냅니다. 자세한 내용은 애플리케이션 캐시 사용하기를 보세요.
version
Deprecated HTML4.01 안씀 HTML5- 현재 문서를 제어하는 HTML 문서 타입 정의의 버전을 나타냅니다. 하지만 이미 문서 타입 선언이 버전을 나타내고 있기 떄문에 이 속성은 필요하지 않습니다.
xmlns
- 문서의 XML 네임스페이스를 나타냅니다. 기본값은 "http://www.w3.org/1999/xhtml" 입니다. 이 속성은 XHTML에서 필수적이며, HTML5에서는 선택적입니다.
예제
<!DOCTYPE html> <html lang="ko"> <head>...</head> <body>...</body> </html>
접근성 고려사항
Providing a lang
attribute with a valid IETF identifying language tag on the html
element will help screen reading technology determine the proper language to announce. The identifying language tag should describe the language used by the majority of the content of the page. Without it, screen readers will typically default to the operating system's set language, which may cause mispronunciations.
Including a valid lang
declaration on the html
element also ensures that important metadata contained in the page's <head>
, such as the page's <title>
, are also announced properly.
- MDN Understanding WCAG, Guideline 3.1 explanations
- Understanding Success Criterion 3.1.1 | W3C Understanding WCAG 2.0
명세
명세 | 상태 | 주석 |
---|---|---|
HTML Living Standard The definition of '<html>' in that specification. |
Living Standard | |
HTML5 The definition of '<html>' in that specification. |
Recommendation | |
HTML 4.01 Specification The definition of '<html>' in that specification. |
Recommendation |
브라우저 호환성
Desktop | Mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome Full support Yes | Edge Full support Yes | Firefox Full support Yes | IE Full support Yes | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile Full support Yes | Firefox Android Full support Yes | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
manifest | Chrome Full support 4 | Edge Full support Yes | Firefox
Full support
3.5
| IE Full support 10 | Opera Full support 10.6 | Safari Full support 4 | WebView Android Full support 4 | Chrome Android Full support 18 | Edge Mobile Full support Yes | Firefox Android Full support 4 | Opera Android Full support 11 | Safari iOS Full support 3.2 | Samsung Internet Android Full support Yes |
version | Chrome Full support Yes | Edge Full support Yes | Firefox Full support Yes | IE Full support Yes | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile Full support Yes | Firefox Android Full support Yes | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
xmlns | Chrome Full support Yes | Edge Full support Yes | Firefox Full support Yes | IE Full support Yes | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile Full support Yes | Firefox Android Full support Yes | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- Deprecated. Not for use in new websites.
- Deprecated. Not for use in new websites.
- See implementation notes.
- See implementation notes.