HTML - Article in Hindi




दोस्तों इस chapter में हम HTML article tag के बारे में जानेंगे तो चलिए शुरू करते है, HTML में article tag अपने आप में freely उपयोग होने वाला वेबसाइट का एक हिस्सा है article tag किसे भी website में या ब्लॉग में अपनी एक अलग ही पहचान रखता है, article tag का उपयोग ज्यादा तर न्यूज़, स्टोरी, ब्लॉग पोस्ट, या पत्रिका में किया जाता है।

Article tag किसी ऐसे page के एक component का representation करता है जिसमें document, पृष्ठ, application या site में एक self-contained structure शामिल होती है और जिसका objective स्वतंत्र रूप से distributed या reusable होना है।

दोस्तों <header> और <nav> elements की सामग्री page से दूसरे page पर भिन्न होती है element में प्रत्येक page के लिए unique सामग्री होती है यह वह place है जहां action है। निम्नलिखित section में इस tag के बारे में जानकारी शामिल है, की कैसे इसका का उपयोग करते है।

Article tag working रूप से <div> elements के उपयोग करने के समान होता है, हालांकि, <div> के बजाय <article> element का उपयोग screen readers, search engine, और third parties applications के लिए अधिक Meaning फूल जानकारी प्रदान करता है।

दोस्तों एक article tag के अंदर हम headings और paragraphs tag को डिफाइन करते है। हेडिंग्स और paragraphs को क्रमश − <h1> और <p> tags द्वारा डिफाइन किया जाता है। किसी भी article का syntax इस प्रकार होता है।

Example

<article>
<h1>Heading</h1>
<p>This is a paragraph.</p>
</article>

दोस्तों आइये अब हम HTML article का एक सिंपल उदाहरण देखते है −

Example

<!DOCTYPE html>
<html>
<body>
<article>
  <h2>This is  Article</h2>
  <p>We have tried to give new perspective to employment as it is not possible to provide employment to everyone in a country of 125 crore people. We are promoting self-employment and the government has made eight crore people self-employed," Mr Shah told reporters.</p>
</article>
<p><strong>Note:</strong> The comments came amid renewed attack by the Opposition on the government's employment numbers.</p>
</body>
</html>

Result

This is Article

We have tried to give new perspective to employment as it is not possible to provide employment to everyone in a country of 125 crore people. We are promoting self-employment and the government has made eight crore people self-employed," Mr Shah told reporters.

Note: The comments came amid renewed attack by the Opposition on the government's employment numbers.