Loading...
HTML <figure> Tag

HTML <figure> Tag

In this tutorial, we will learn about figure tag in HTML with the help of examples.


<figure> Tag

Figure tag <figure> is used to specify self-contained content, like illustrations, diagrams, photos, etc.

Syntax

<figure>.......</figure>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Figure Tag</title>
  </head>
  <body>
    <figure>
      <img src = "./boat.jpg" alt = "image not found">
      <figcaption>Boats in Mountains</figcaption>
    </figure>
  </body>
</html>

Output

image not found
Boats in Mountains

Global Attribute

Figure Tag support all the global attributes of HTML.


Event Attribute

Figure Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of Figure tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML footer Tag.

- Related Topics