HTML <figcaption> tag

Updated: 11/13/2018 by Computer Hope
HTML figcaption tag

When writing in HTML (hypertext markup language), the <figcaption> tag designates a caption for a <figure> element. The <figcaption> tag is optional, and can be either the first or last element in the <figure> block. The following sections contain information about the <figcaption> tag, including an example of it in use, and related attributes and browser compatibility.

Example of <figcaption> code

<figure>
<img src="https://www.computerhope.com/chguy.gif" width="57" height="120" alt="Computer Hope Guy">
<figcaption>Figure A - Computer Hope guy.</figcaption> </figure>

Example result

Computer Hope Guy
Figure A - Computer Hope guy.

Attributes

All HTML tags support standard attributes that define the settings of an HTML element. Unlike other HTML tags, the <figcaption> tag has no unique attributes.

Compatibility

Edge Internet Explorer Firefox Safari Opera Chrome
All versions 9.0+ 4.0+ 5.1+ 11.1+ 8.0+

Browser, Compatibility, Container tag, Web design terms