HTML and CSS Reference
In-Depth Information
Name
figure
Synopsis
<figure> . . . </figure>
Not in HTML 4.01 . Indicates some set of self-contained content that is referred to from the
main content, such as illustrations, code examples, diagrams, and poems. A caption may be
provided for the figure with the optional figcaption element, which may come at the begin-
ning or end of the figure markup.
Usage
Categories:
Flow content, sectioning root, palpable content
Permitted contexts:
Where flow content is expected
Permitted content:
Flow content, with an optional figcaption element at the beginning or end
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
Examples
<figure>
<img src="piechart.png" alt="2014 sales chart">
<figcaption>Sales skyrocket in 2014</figcaption>
</figure>
Search WWH ::




Custom Search