HTML <figcaption> Tag
In this tutorial, we will learn about figcaption tag in HTML with the help of examples.
<figcaption> Tag
Figcaption tag <figcaption> is used to defines a caption for a <figure> tag.
Syntax
<figcaption>.......</figcaption>
Example
<!DOCTYPE html>
<html>
<head>
<title>Figcaption Tag</title>
</head>
<body>
<figure>
<img src = "./boat.jpg" alt = "image not found">
<figcaption>Boats in Mountains</figcaption>
</figure>
</body>
</html>
Output
Boats in Mountains
Global Attribute
Figcaption Tag support all the global attributes of HTML.
Event Attribute
Figcaption Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of figcaption tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML figure
Tag.