HTML figcaption Tag as the name suggests defines the caption of the figure html element. HTML figcaption tag is used inside the figure html tag.
Table of Contents
Syntax of HTML figcaption Tag
The Syntax of HTML figcaption Tag is shown below, It has both starting and ending tags.
<figcaption>
// caption of figure element
</figcaption>
Usage of HTML figcaption Tag
HTML figcaption Tag is used to define a caption for the figure html element. This caption is usually for the images used inside the figure tag.
HTML figcaption Tag is used as the first or last child of the figure element, which means it's either placed after the img tag or before it.
HTML figcaption Tag is a block level element.
Example of HTML figcaption Tag
Simple example of HTML figcaption Tag is shown below.
<figure>
<img src="image url">
<figcaption>Caption Here.</figcaption>
</figure>
Browser Support for HTML figcaption Tag
HTML figcaption Tag is supported by all major browsers including Safari and Internet Explorer.
Global Attributes Support in HTML figcaption Tag
The HTML figcaption Tag supports all Global Attributes.
Event Attributes Support in HTML figcaption Tag
The HTML figcaption Tag supports all Event Attributes.
HTML figcaption Tag Video
Watch our video on HTML figcaption Tag.
Post a Comment