figure tag in html with example

  1. The HTML <figure> tag is used for annotating illustrations, diagrams, photos, code listings, etc.
  2. You can use the <figure> element to associate a caption together with some embedded content, such as a graphic or video.
  3. 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 :

    <head><title>figure tag in html5</title></head>
        <b>addClass() syntax :</b>

Demo :

In the above example, we have used figure element to show addClass() method's syntax.


Post a Comment