Last Updated on April 26, 2023 by Roshan Parihar
HTML figure tag is used to add self-contained contents like illustrations, diagrams, photos, code Listings etc.
Syntax
1 2 3 |
<figure> embed your media content here. </figure> |
1 2 3 4 |
<figure> <img src="../images/nature.jpg" alt="HTML Figure" width="200" height="200"/> <figcaption>fig 1.1 Showing nature image</figcaption> </figure> |
Output
Resources and References of HTML figure tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github