The figcaption element

The figcaption tag (<figcaption>) defines a caption within a figure element. The HTML5 figcaption element must be used immediate after <figure> tag or just before </figure> tag, that means the figcaption element must be either first or last child element of its parent figure element. Only one figcaption element can be used within a figure element of HTML5 document.

Important point need to be remembered:

HTML5 figcaption element is supported by latest versions of all web browsers. Internet Explorer 8 or earlier versions of Internet Explorer do not support figcaption element.

There are some HTML5 figcaption element examples given below:

<figure>
   <img src="sunrise.jpg" alt="The photo of Sunrise" width="400" height="300">
   <figcaption>Sunrise at Puri - posted by A. Smith</figcaption>
</figure>
<figure>
   <figcaption>The following images have been posted by A. Smith</figcaption>
   <img src="sunset.jpg" alt="The photo of Sunset" width="400" height="300">
   <img src="sunrise.jpg" alt="The photo of Sunrise" width="400" height="300">
</figure>
Press CTRL+D to bookmark this page - The figcaption element

Your comment

(required)

+ 9 = 16