HTML में <section> टैग का उपयोग header, footer, lesson आदि को HTML डॉक्यूमेंट में परिभाषित करने के लिए किया जाता है, जिसे हम Sections कह सकते हैं.
HTML में <section> टैग का उपयोग header, footer, lesson आदि को HTML डॉक्यूमेंट में परिभाषित करने के लिए किया जाता है, जिसे हम Sections कह सकते हैं.
Section को यँहा पर ऐसे Content के Group के Reference मे Use किया गया है जो किसी एक Topic से Related है.
Everyone <section> Element को Heading या Child <section> Element द्वारा विशिष्ट रूप से Identify किया जाता है.
<section> Element एक Container Element नही होता है. अगर आपको सिर्फ एक ऐसे Container Element की जरुरत है जिसमे आप दूसरे Element को डाल सके और उसे Design कर सके तो ऐसा करने के लिए आपको <div> Element का उपयोग करना चाहिए.
<div> Element का कोई Special Meaning नहीं होता है. Search Engines द्वारा <div> Element को Skip कर दिया जाता है क्योंकि <div> Element को सिर्फ दूसरे Elements को Contain करने के लिए उपयोग किया जाता है.
<!DOCTYPE HTML>
<html>
<body>
<section>
<h1>Tutorialroot</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting.
Lorem Ipsum has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type and scrambled
it to make.</p>
</section>
<section>
<h1>Tutorialroot</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting.
Lorem Ipsum has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type and scrambled
it to make.</p>
</section>
<p><strong>Note:</strong> Lorem Ipsum is simply dummy text of
the printing and typesetting industry.</p>
</body>
</html>