Html5 Figcaption Tag

The <figcaption> tag was introduced in HTML 5. The <figcaption> tag did not exist in older versions of HTML.which tag should be place in child of the first or last figure tag. which tag is used to diagrams, photos,code,images etc.

Syntax:

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

Example Code

<!DOCTYPE HTML>
<figure>
  <figcaption>Sun Flower </figcaption>
  <img src="../../images/flower-icon.jpg" border="0"/>
</figure>

Out Put :



Sun Flower





Content