Last Updated on April 26, 2023 by Roshan Parihar
HTML figcaption tag is used to add a caption with the contents like illustrations, diagrams, photos, code Listings etc.
We use <figcaption> tag inside figure tag to include a caption with the media contents like images, videos etc.
Syntax
1 |
<figcaption>Include your caption content here...</figcaption> |
1 2 3 4 |
<figure> <img src="../images/nature.jpg" alt="HTML Figcaption" width="150" height="150"/> <figcaption>fig 1.1 Showing nature image</figcaption> </figure> |
Output
Resources and References of HTML figcaption tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github