Html5 Figure Tag

The <figure> tag was introduced in HTML 5. The <figure> tag did not exist in older versions of HTML. which tag is used to diagrams, photos, code listings,code,images etc.In the figure tag should be relevant to the main content.

Syntax:

<figure>
  <img src="..." />
</figure>

Example Code

<!DOCTYPE HTML>
<figure>
   <p>The sunflower got its name from its huge fiery blooms, whose shape and image is often used to depict the sun </p>
  <img src="../../images/flower-icon.jpg" border="0"/>
</figure>

Out Put :




The sunflower got its name from its huge fiery blooms, whose shape and image is often used to depict the sun





Content