figure tag in html with example
- The HTML
<figure>tag is used for annotating illustrations, diagrams, photos, code listings, etc. - You can use the
<figure>element to associate a caption together with some embedded content, such as a graphic or video. - You can use the
<figure>element in conjunction with the<figcaption>element to provide a caption for the contents of your<figure>element.
Example 1 :
<html>
<head><title>figure tag in html5</title></head>
<body>
<b>addClass() syntax :</b>
<figure>
<code>
<pre>
$(selector).addClass("classname");
</pre>
</code>
</figure>
</body>
</html>
Demo :
In the above example, we have used figure element to show addClass() method's syntax.


0 comments:
Post a Comment