HTML DOM Section Object

Section Object

The Section Object is new in HTML5.

The Section object represents an HTML <section> element.

注: The <section> element is not supported in Internet Explorer 8 and earlier versions.

Access a Section Object

You can access a <section> element by using getElementById():


var x = document.getElementById("mySection");
Try it Yourself »

Create a Section Object

You can create a <section> element by using the document.createElement() method:


var x = document.createElement("SECTION");
Try it Yourself »

Standard Properties and Events

The Section object supports the standard properties and events.

Related Pages

HTML reference: HTML <section> tag