The <figcaption> tag 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 this element must be either first or last child element of its parent <figure> element. Only one <figcaption> tag can be used within a <figure> element of a HTML5 document. This tag is also newly introduced in HTML5.

Web browser support:

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

There are some HTML5 <figcaption> tag 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>

S Ghosh

Leave a Reply

Your email address will not be published. Required fields are marked *

+ one = 9

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>