HTML DOM Section object

Section object

The Section object represents the HTML <section> element.

Note:Internet Explorer 8 and earlier versions do not support the <section> element.

Access Section object

You can use getElementById() to access the <section> element:

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

Try it yourself

Create Section object

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

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

Try it yourself

Standard properties and events

The Section object supports standardsPropertiesandEvents.

Related pages

HTML reference manual:HTML <section> tag