एचटीएमएल <अनुभाग> टैग
उदाहरण
एक दस्तावेज़ में दो खंड:
<section>
<h2>WWF History</h2>
<p>The World Wide Fund for Nature (WWF)
is an international organization working on issues regarding the
conservation, research and restoration of the environment, formerly named
the World Wildlife Fund. WWF was founded in 1961.</p>
</section>
<section>
<h2>WWF's Symbol</h2>
<p>The Panda has become the symbol of
WWF. The well-known panda logo of WWF originated from a panda named Chi Chi
that was transferred from the Beijing Zoo to the London Zoo in the same year
of the establishment of WWF.</p>
</section>
परिभाषा और उपयोग
<section>
टैग किसी दस्तावेज़ में एक अनुभाग को परिभाषित करता है ।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से तत्व का समर्थन करता है।
Element | |||||
---|---|---|---|---|---|
<section> | 5.0 | 9.0 | 4.0 | 5.0 | 11.5 |
वैश्विक गुण
<section>
टैग HTML में वैश्विक विशेषताओं का भी समर्थन करता है ।
घटना गुण
<section>
टैग HTML में ईवेंट विशेषताओं का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML DOM संदर्भ: सेक्शन ऑब्जेक्ट
डिफ़ॉल्ट सीएसएस सेटिंग्स
अधिकांश ब्राउज़र <section>
निम्न डिफ़ॉल्ट मानों के साथ तत्व प्रदर्शित करेंगे:
उदाहरण
section {
display: block;
}