HTML 사전

head

설명

The HTML <head> element represents a collection of metadata about the document, including links to or definitions of scripts and style sheets.

HTML <head> 요소는 문서의 메타데이터 모음을 표현한다. 여기에는 스크립트와 스타일시트를 정의하거나 거기에 링크를 거는 것이 포함된다.

Usage Context

Permitted content One <title> element, an optional <base> element, and any number of metadata elements, in any order. In HTML5, the <object> is no longer allowed as a child of <head>.
Tag omission The start tag may be omitted if the first thing inside the head element is an element.
The end tag may be omitted if the first thing following the head element is not a space character or a comment.
Permitted parent elements <html>
Normative document HTML 5, section 4.2.1; HTML 4.01, section 7.4.1

속성

다른 HTML 요소와 마찬가지로 전역속성을 지원한다.

profile 속성 : HTML 4에서만 가능하고, HTML 5에선 폐기 되었다.
    한 개 이상의 메타데이터 프로파일의 URI를 담는다. 여러개일때 구분은 공백으로 한다.

예제

<html>
  <head>
    <title>문서 제목</title>
  </head>
</html>

참고 :
 Most browsers automatically construct a <head> element if the tags are omitted in the markup. However some do not.
These browsers were tested as not creating a head element automatically: Android <=1.6, iPhone <=3.1.3, Nokia 90, Opera <=9.27, and Safari <=3.2.1.

대부분의 브라우저는 마크업상으로 <head> 태그가 생략되었더라도 <head> 요소를 자동으로 구성해준다. 하지만 일부 브라우저는 그렇게 해주지 않는다.
다음 버전의 브라우저들은 자동으로 <head> 요소를 생성하지 않는 것으로 테스트되었다 : 
안드로이드 <= 1.6, 아이폰 <= 3.1.3, 노키아 90, 오페라 <= 9.27, 사파리 <= 3.2.1

DOM Interface

이 요소는 HTMLHeadElement 인터페이스를 구현한다.

호환성

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

참고

댓글

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