HTML DOM Section Object







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



HTML DOM Section Object



❮ Previous
Next ❯



Section Object HTML5


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():



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





❮ Previous
Next ❯

Popular posts from this blog

Greedy Best First Search implementation in Rust

Function to Return a JSON Like Objects Using VBA Collections and Arrays

C++11 CLH Lock Implementation