THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Figcaption Object


Figcaption Object

The Figcaption Object is new in HTML5.

The Figcaption object speaks to a HTML <figcaption> element.

Access a Figcaption Object

You can get to a <figcaption> component by utilizing getElementById():

var x = document.getElementById("myFigCap");

Create a Figcaption Object

You can make a <figcaption> component by utilizing the document.createElement() method:

var x = document.createElement("FIGCAPTION");

Standard Properties and Events

The Figcaption object additionally bolsters the standard properties and events.