figurecaption element in html5 with example
- The <figurecaption> tag defines caption for the <figure> element.
- The <figurecaption> tag can be added as first child or can be added as last child of <figure> element.
- The <figcaption> tag is supported in Internet Explorer 9, Firefox, Opera, Chrome, and Safari.
- IE8 and earlier browsers do not support this element.
Example 1 :
<html>
<head><title>figure tag in html5</title></head>
<body>
<b>addClass() syntax :</b>
<figure>
<figurecaption>addClass in jQuery</figurecaption>
<code>
<pre>$(selector).addClass("classname");
</pre>
</code>
<figurecaption>Fig : Syntax</figurecaption>
</figure>
</body>
</html>
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.
0 comments:
Post a Comment