Summary -

In this topic, we described about the <figcaption> tag along with detailed example.

The <figcaption> tag is new in HTML5. Figure caption. Defines Caption or legend for <figure> tag.

Figure caption represented by using <figcaption> tag. <figcaption> tag must be first or last child of the <figure> tag. The tag can be specified like <figcaption></figcaption> with the legend/caption nested between the opening and closing tags.

Syntax -

<figcaption>.. text here.. </figcaption>

Example -

<!DOCTYPE html>
		<title>Figcaption tag example.. </title>
			<img src="img/footer-logo.png" alt="" 
			width="100" height="100">
			<figcaption>Fig. –  Logo.</figcaption>

Output -

Fig. – Logo.