WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Section Object


Section Object

The Section Object is new in HTML5.

The Section object represents an HTML <section> element.

Note: 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");

Create a Section Object

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

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