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");
相關頁面
HTML 參考手冊:HTML <section> 標簽