HTML DOM Section Object


Section Object

The Section object represents an HTML <section> element.

Access a Section Object

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

Example

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

Create a Section Object

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

Example

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


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.