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

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

Create a Figure Object

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

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

Standard Properties and Events

The Figure object also supports the standard properties and events.


Related Pages

HTML reference: HTML <figure> tag