<

HTML <figcaption> Tag

The <figcaption> tag defines a caption for a <figure> element.The <figcaption> element can be placed as the first or last child of the <figure> element.

Example




<!DOCTYPE html>
<html>
<body>

<h2>figcaption example</h2>


<figure>
  <img src="/logo.png" alt="logo" style="width:100%">
  <figcaption>Fig.1 - logo</figcaption>
</figure>

</body>
</html>















© copyright 2017-2022 Completedone pvt ltd.