Home >> HTML 5 >> figcaption Tag in HTML 5

figcaption Tag in HTML 5

The <figcaption> tag defines a caption for a figure element.

Syntax:
<figcaption> Figure caption </figcaption>

For example:-

<!DOCTYPE html>
<html>
<head>
   <title>Figcaption Tag</title>
</head>
<body>
    <h2>Coder Raj</h2>
    <figure>
       <img src="https://www.coderraj.com/img/logo.png" alt="logo" style="width:100%">
       <figcaption>Coder Raj Logo</figcaption>
    </figure>
</body>
</html>

Post Your Comment

Next Questions
figure Tag
font Tag
footer Tag
form Tag
frame Tag
frameset Tag
Heading Tag
head Tag
header Tag
hr Tag
html Tag
i Tag
iframe Tag
img Tag
input Tag
ins Tag
kbd Tag
label Tag
legend Tag
li Tag
link Tag
ul Tag
video Tag
wbr Tag

Copyright ©2022 coderraj.com. All Rights Reserved.