figurecaption element in html5 with example

  1. The <figurecaption> tag defines caption for the <figure> element.
  2. The <figurecaption> tag can be added as first child or can be added as last child of <figure> element.
  3. The <figcaption> tag is supported in Internet Explorer 9, Firefox, Opera, Chrome, and Safari.
  4. IE8 and earlier browsers do not support this element.

Example 1 :

    <head><title>figure tag in html5</title></head>
        <b>addClass() syntax :</b>
            <figurecaption>addClass in jQuery</figurecaption>
            <figurecaption>Fig : Syntax</figurecaption>

Demo :

In the above example, we have used figurecaption element. We have included two figurecaption element. The above example shows that figurecaption element can be used as first or last child element inside figure element.


Post a Comment