HTML 사전

html

설명

The HTML root element (<html>) represents the root of an HTML or XHTML document. All other elements must be descendants of this element.

HTML에서 최상위 테그인 <html>은 HTML 또는 XHTML 문서타입의 시작과 종료를 표현하기 위해 사용된다. 그러므로 HTML이나 XHTML에서 사용되는 모든 다른 테그는 <html> 하위에 종속된다.

Usage Context

Permitted content One <head> element, followed by one <body> element.
Tag omission The start tag may be omitted if the first thing inside the <html> element is not a comment.
The end tag may be omitted if the <html> element is not immediately followed by a comment, and it contains a <body> element either that is not empty, or whose start tag is present.
Permitted parent elements None.
Normative document HTML 5, section 4.1.1; HTML 4.01, section 7.3

속성

이 엘리먼트는 전역속성을 지원한다.

참고 :
manifest - HTML5Requires Gecko 1.9
Specifies the URI of a resource manifest indicating resources that should be cached locally. See Offline resources in Firefox for details.
version - Deprecated  in HTML 4.01, Obsolete in HTML5
Specifies the version of the HTML Document Type Definition that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.

참고 :
설정(매니페스트) -  HTML5는 게코 1.9버전을 필요로 한다.
로컬 캐시되어야 하는 자원을 표기하는 리소스 설정(매니페스트)의 URI를 정의한다.(오프라인 보기를 지원하기 위해 로컬 디스크에 해당 페이지의 리소스를 임시로 저장하는 기능) 자세한 설명은 파이어폭스 오프라인 리소스를 참조하라.
버전 - HTML 4.01에서 폐지 예정이었고, HTML5에서 폐지되었다.
현재 문서 전체에 적용되는 HTML 문서 형식 지정 버전을 정의한다. 문서 형식 선언부의 버전 정보와 중복되므로, 버전 속성을 별도로 정의하는 것은 불필요하다.

예제

The DOCTYPE used in the following example indicates HTML5.

아래 예제에서 사용되는 DOCTYPE은 HTML5 문서임을 보여준다.

<!DOCTYPE html>
<html>
  <head>...</head>
  <body>...</body>
</html>

참고 :
Since the <html> element is the first in a document other than comments, it is called the root element. Although this tag can be implied, or not required, with HTML, it is required to be opened and closed in XHTML.

참고 : <html> 테그는 주석을 제외하고 모든 문서상에서 맨 먼저 사용되기 때문에 루트 요소(속성)라고 부르며, <html>테그는 작성된 HTML문서에서는 외면상에 나타나는 속성이 없으므로 필요하지 않거나 생략될 수도 있지만, XHTML에서는 명확하게 <html>....</html>와 같이 열리고 닫힘을 표현해 주어야 한다.

DOM Interface

•HTMLHtmlElement

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원 1.0 지원 지원   지원
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원 지원 지원 지원 지원 지원

참고

댓글

댓글 본문
버전 관리
crannoc
현재 버전
선택 버전
graphittie 자세히 보기