<figcaption> semantic HTML element describes the media encapsulated within the
Developers will normally use
<figcaption> within the
<figure> element to group the media and description. This way, if a developer decides to change the position of the media, the description will follow along with it.
<figure><!-- An image, diagram, or code snippet goes inside figure --><figcaption>Some text describing the above</figcaption></figure>
<figure><img src="dota2.jpg" /><figcaption>This picture shows characters from the game Dota 2.</figcaption></figure>
Suppose the current page wants to include an image and a image caption:
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Learn HTML on Codecademy
Front-End EngineerFront-end engineers work closely with designers to make websites beautiful, functional, and fast.
Includes 34 Courses
With Professional Certification