THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Figure Object


Figure Object

The Figure Object is new in HTML5.

The Figure object represents an HTML <figure> element.

Access a Figure Object

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

Example

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

Create a Figure Object

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

Example

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

Standard Properties and Events

The Figure object also supports the standard properties and events.


Related Pages

HTML reference: HTML <figure> tag