<figure> तत्व में कैप्शन जोड़ने के लिए, <figcaption> टैग का उपयोग किया जाता है. आप HTML5 में <figure> तत्व के लिए एक कैप्शन को शामिल करने के लिए निम्न कोड को चलाने का उपयोग कर सकते हैं.
<figure> Tag के साथ <figcaption> Tag का उपयोग किया जाता है. इस Tag के द्वारा Diagram, Code और उदाहरण आदि को शीर्षक दिया जा सकता है. इससे उपयोगकर्ता की Engagment और Readability बढ़ती है. HTML5 से पहले Images आदि को Title देने का कोई Mechanism नही था.
<figure> Tag का उपयोग Search Engines लिए बहुत अच्छा माना जाता है क्योकि इससे वेब पेज Read करने मे सहयता मिलती होती है. इसलिए इसको SEO के लिए बहुत अच्छा माना जाता है.
<figure>
Code, Diagram, Example
</figure>
<!DOCTYPE HTML>
<html>
<body>
<section>
<h1>Tutorialroot</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting</p>
</section>
<figure>
<img src="figcaption.jpg" alt="The Figcaption" width="304"height="228">
<figcaption>Fig.1 - A view of the Running Girl .</figcaption>
</figure>
</body>
</html>