HTML figcaption tag The 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 Only one element can be nested within a The element is used with element and it can be placed as the first or last child of the element.
HTML figure tag example
Test it Now Output:
Fig.1.1 - A front view of the great Taj Mahal in Agra.
Supporting Browsers
Element |
Chrome |
IE |
Firefox |
Opera |
Safari |
|
Yes |
Yes |
Yes |
Yes |
Yes |
Note: HTML figcaption tag also supports the global and event attribute in HTML.
|