सेल्फ-कंटेन्ड कंटेंट बनाने के लिए <figure> टैग का उपयोग करें। HTML5 में <figure> टैग इम्प्लीमेंट करने के लिए निम्न कोड चलाएं:
उदाहरण
<!DOCTYPE html> <html> <head> <title>HTML figure Tag</title> </head> <body> <h2>Tutorialspoint Coding Ground</h2> <figure> <img src="https://www.tutorialspoint.com/videotutorials/images/coding_ground_home.jpg"/> </figure> </body> </html>
नोट: <figure> सेल्फ-कंटेन्ड कंटेंट रिप्रेजेंट करता है (इमेज, डायग्राम, कोड स्निपेट्स) जिसे मुख्य फ्लो से अलग किया जा सकता है बिना डॉक्यूमेंट के अर्थ को प्रभावित किए। अक्सर <figcaption> के साथ उपयोग किया जाता है।