सिमेंटिक एलिमेंट्स का मूल्य
<section> और <article> एलिमेंट्स स्क्रीन रीडर्स के लिए उपयोगी हैं और नेत्रहीन उपयोगकर्ताओं को आपके वेब पेज की सामग्री पढ़ने में मदद करते हैं। ये ईबुक रीडर्स के लिए भी फायदेमंद हैं।
<section> के साथ काम करना
<!DOCTYPE html>
<html>
<head>
<title>HTML Section Tag</title>
</head>
<body>
<section>
<h1>Java</h1>
<h3>Inheritance</h3>
<p>Inheritance defines the relationship between superclass and subclass.</p>
</section>
</body>
</html>
<article> के साथ काम करना
<!DOCTYPE html>
<html>
<body>
<main>
<h1>Learning</h1>
<p>Learn to gain experience and try to share your knowledge with others.</p>
<article>
<h3>Web Development Tutorials</h3>
<p>Consist of CSS, HTML, and PHP tutorials for 2nd Semester exams.</p>
</article>
<article>
<h3>Academic Tutorials</h3>
<p>Consist of Computer Fundamental, Computer Network tutorials for 1st Semester exams.</p>
</article>
</main>
</body>
</html>
ये एलिमेंट्स सार्थक दस्तावेज़ संरचना और पहुंच प्रदान करते हैं।