HTML FIGCAPTION (<figcaption>) Tag
0 2586
The HTML FIGCAPTION <figcaption> tag is used to give a caption of an image. It is an optional tag. We can use this tag before or after the content within the <figure> tag.
It can be written as <figcaption></figcaption> with the caption inserted between the start and end tags. You can read the example below:-
Program:
<!DOCTYPE html>
<html>
<head>
<title>figcaption Tag</title>
</head>
<body>
<figure>
<img src="codingtag.png" alt="CodingTag"/>
<figcaption>Fig.1.1 - CodingTag Logo</figcaption>
</figure>
</body>
</html>
Output:
![Best Web Hosting Best WordPress Hosting](https://bluehost-cdn.com/media/partner/images/codingtag/728x90/728x90BW.png)
Share:
Comments
Waiting for your comments