Spread the love

HTML <figure> Tag

The HTML <figure> Tag is employed to mark photos within the output on an online page.

HTML <figure> Tag is a new tag introduced in HTML5.

We know that there is an image tags area unit already available in HTML to display images on an online page. However HTML 5 <figure> tags are employed to handle goggles of diagrams, photos, code listings etc. with some embedded content. You will add a caption to the photograph misbehaving with the <figuration> Tag.

Example:-

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>HTML figure Tag</title>
</head>

<body>
  <h1>HTML figure Tag Example</h1>

  <figure>
    <img src="https://www.myprograming.com/wp-content/uploads/2021/05/03.jpg">
  </figure>
</body>
</html>

Output:-


Spread the love

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *