Publish in HTML Tutorial el 23/05/2025 23:11
The <figcaption> HTML element represents a caption or legend describing the rest of the contents of its parent <figure> element. It provides semantic meaning to images, diagrams, illustrations, code snippets, or other media content by allowing you to associate a visible description.
Key characteristics of <figcaption>:
Here's the basic structure of how <figcaption> is used:
A simple image with a descriptive caption below it:
Showing a code block with an explanatory caption:
Grouping several images under one caption:
Changing the caption text using JavaScript:
Creating an interactive figure that responds to user actions:
The <figcaption> element is supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera. It's also supported in Internet Explorer 9 and later.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...