THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML DOM Footer Object


Footer Object HTML5

The Footer Object is new in HTML5.

The Footer object represents an HTML <footer> element.

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

Access a Footer Object

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

Example

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

Create a Footer Object

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

Example

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

Standard Properties and Events

The Footer object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML5 Semantic Elements

HTML reference: HTML <footer> tag

JavaScript reference: HTML DOM Header Object