HTML DOM 메타 객체
메타 개체
Meta 객체는 HTML <meta> 요소를 나타냅니다.
메타 개체에 액세스
getElementsByTagName()을 사용하여 <meta> 요소에 액세스할 수 있습니다.
var x = document.getElementsByTagName("META")[0];
메타 개체 만들기
document.createElement() 메서드를 사용하여 <meta> 요소를 만들 수 있습니다.
예시
var x = document.createElement("META");
메타 개체 속성
Property | Description |
---|---|
content | Sets or returns the value of the content attribute of a meta element |
httpEquiv | Sets or returns an HTTP header for the information in the content attribute |
name | Sets or returns a name for the information in the content attribute |
scheme | Not supported in HTML5. Sets or returns how the value of the content attribute should be interpreted |
표준 속성 및 이벤트
Meta 개체는 표준 속성 및 이벤트 도 지원합니다 .
관련 페이지
HTML 참조: HTML <meta> 태그