10 Jul HTML5 figure Tag
Use the HTML5 figure tag if you want to add images, diagrams and other self-contained content on your website. Add a caption too by adding the HTML5 <figcaption> tag under the <figure> tag.
<title>Understanding HTML5 Figure Tag</title>
<figcaption>Figure- Studyopedia Logo</figcaption>
Here’s the output, with caption Figure- Studyopedia Logo, added using the figcaption tag,
We have added a logo under the src attribute of img tag under the figure tag. Additionally, we added figcaption tag also to provide caption to the image we added.
We also added a title to the web page, which would be visible on the page’s tab as well as web browsers tab.