Latest web development tutorials
 

HTML DOM Article Object


Article Object

The Article Object is new in HTML5.

The Article object represents an HTML <article> element.

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

Access an Article Object

You can access an <article> element by using getElementById():

Example

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

Create an Article Object

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

Example

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

Standard Properties and Events

The Article object supports the standard properties and events.


Related Pages

HTML reference: HTML <article> tag