How do you create an article in HTML?

नमस्कार दोस्तों! इस लेख में हम How do you create an article in HTML? का जवाब दे रहे होंगे।

How do you create an article in HTML?

इस लेख में हम जानेंगे की HTML में article कैसे बनाते है ? इसका कोड निचे में दे रहे है जहा से आप उसको अपने हिसाब से use कर सकते है।

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sample Article</title>
</head>
<body>

    <header>
        <h1>Welcome to My Blog</h1>
    </header>

    <!-- Main article section -->
    <article>
        <header>
            <h2>The Beauty of Nature</h2>
            <p><time datetime="2024-08-12">August 12, 2024</time> by <a href="#">John Doe</a></p>
        </header>

        <p>Nature offers endless beauty and inspiration. From the towering mountains to the deep blue oceans, every aspect of nature reminds us of the vastness and complexity of the world we live in.</p>

        <p>The changing seasons bring with them unique landscapes and weather patterns, each telling its own story. Whether it's the blooming flowers of spring or the falling leaves of autumn, there's always something to admire and appreciate.</p>

        <h3>Why We Should Protect Nature</h3>
        <p>As stewards of the earth, it's our responsibility to protect and preserve these natural wonders for future generations. Sustainable practices and conservation efforts are key to ensuring that the beauty of nature can be enjoyed by all.</p>

        <footer>
            <p>Tagged in: <a href="#">Nature</a>, <a href="#">Environment</a>, <a href="#">Conservation</a></p>
            <p>Comments: <a href="#">5 Comments</a></p>
        </footer>
    </article>

    <footer>
        <p>&copy; 2024 My Blog. All rights reserved.</p>
    </footer>

</body>
</html>
By- tutor4u

HTML में article क्या है ?

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article

ऊपर दिए लिंक से आप इसके बारे में पढ़ सकते है।

सबसे ज्यादा पढ़े जाने वाला पोस्ट:


Free में notes डाउनलोड करने के लिए आप निचे दिए गए image को click करे। 
How do you create an article in HTML?

Leave a comment