Blog

figcaption tag in HTML5

By Mahak Gupta Jan 07 2012
It uses a figure element, which is used to take an image element in the documnet.
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 2.6k
  • 0
It uses a figure element, which is used to take an image element in the document.  We can also place any text in it.

Ex:


11.png 
Complete Program:

<html>
<body>

<p>A day after scrapping a visit to China following Beijing's denial of visa to an Arunachal officer, the govt decided to go ahead with the tour, but with just 15 members.</p>

<figure>
  <img src="china.gif"  width="300" height="200" />
  <figcaption>
India does a U-turn, to send small military team to China</figcaption>
</figure>

</body>
</html>