The <figcaption> tag adds a caption to a <figure> element.
<figcaption> |
Yes | Yes | Yes | Yes | Yes |
The <figcaption> tag is new in HTML5.
The <figcaption> tag supports the Global Attributes in HTML.
The <figcaption> tag supports the Event Attributes in HTML.
figcaption { display: block; }
<!DOCTYPE html>
<html>
<body>
<!--from w w w . j a v a 2 s . com-->
<figure>
<img src="http://java2s.com/style/demo/border.png" alt="border" >
<figcaption>Fig.1 - A border image.</figcaption>
</figure>
</body>
</html>