HTML DOM Footer Object

Footer Object

The Footer Object is new in HTML5.

The Footer object represents an HTML <footer> element.

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


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

Create a Footer Object

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


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