in HTML by
What is the use of figcaption tag in HTML 5?

1 Answer

0 votes
The <figcaption> element is used to provide a caption to an image. It is an optional tag and can appear before or after the content within the <figure> tag. The <figcaption> element is used with <figure> element and it can be placed as the first or last child of the <figure> element.


  <img src="htmlpages/images/tajmahal.jpg" alt="Taj Mahal"/>    

<figcaption>Fig.1.1 - A front view of the great Taj Mahal in Agra.</figcaption>    


Related questions

0 votes
asked Jan 29, 2021 in HTML by rajeshsharma
+1 vote
asked Jan 28, 2021 in HTML by SakshiSharma
0 votes
asked Oct 24, 2019 in HTML by SakshiSharma
0 votes
asked Feb 11, 2020 in HTML by rahuljain1