Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <figcaption> tag.

Use of <figcaption> tag

The <figcaption> tag is used to define a caption for the figure element.
It may assigned as the first or last child of a <figure> element.

Display:Block

Example of <figcaption> tag

    <figure>
       <img scr="img_name.jpg height="250px" width="250px">
          <figcaption> <i> Fig. 1 </i> Bala Hijam</figcaption>
       </fieldset>
    </figure>

Supported Browsers.

Tag
<figcaption> 6.0 or higher 9.0 or higher 4.0 or higher 5.0 or higher 11.1 or higher

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<figure>
<img src="img_name.jpg" height="200px" width="300px">
<figcaption> <i> Fig. 1 </i> Bala Hijam</figcaption>
</figure>
</body>
</html>

Output

Fig. 1 Bala Hijam

More Reference


<figcaption> tag must be defined within the <figure> element only else it may wrong.
Only one <figcaption> tag must be defined for a <figure> tag.
The content of <figcaption> must be related with the <figure> element.

Default CSS Properties of <figcaption> tag

figcaption {
display:block;
}