Javatpoint Logo
Javatpoint Logo

HTML figcaption tag

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.

Only one <figcaption> element can be nested within a <figure> tag although the <figure> element itself may contain multiple other elements like <img> or <code>.

The <figcaption> element is used with <figure> element and it can be placed as the first or last child of the <figure> element.


HTML figure tag example

Test it Now

Output:

Taj Mahal
Fig.1.1 - A front view of the great Taj Mahal in Agra.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<figcaption>YesYesYesYesYes

Note: HTML figcaption tag also supports the global and event attribute in HTML.


Next TopicHTML figure tag





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA