HTML DOM Section 대상

Section 객체

Section 객체는 HTML <section> 요소를 대표합니다。

주의사항:Internet Explorer 8 및 이전 버전은 <section> 요소를 지원하지 않습니다。

Section 객체 접근

getElementById()를 사용하여 <section> 요소에 접근할 수 있습니다:

var x = document.getElementById("mySection");

직접 시험해 보세요

Section 객체 생성

대상 document.createElement() 메서드를 사용하여 <section> 요소를 생성할 수 있습니다:

var x = document.createElement("SECTION");

직접 시험해 보세요

표준 속성 및 이벤트

Section 대상이 지원하는 표준속성이벤트

관련 페이지

HTML 참조 매뉴얼:HTML <section> 태그