<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a paragraph.</p>
</body>
</html>
Basic HTML Tags in Hindi
<html> Tag
<html> tag पूरे HTML document की शुरुआत करता है और इसी में बाकी सारे tags लिखे जाते हैं। इसे root element भी कहा जाता है। HTML page का सारा content इसीtag के अंदर आता है। शुरुआत में <html> open किया जाता है और सबसे अंत में </html> से बंद किया जाता है।
<head> Tag
<head> tag HTML page की invisible (non-visible) जानकारी को रखता है। इसमें वो elements होते हैं जो browser को page के बारे में बताते हैं, जैसे title, meta tags, links, और scripts। यह content user को सीधे नहीं दिखता, लेकिन page की working और SEO के लिए बहुत जरूरी होता है।
<title> Tag
<title> tag <head> के अंदर होता है और ये web page का title सेट करता है। यही title browser के tab में दिखता है जब आप कोई site open करते हैं। Example के लिए: <title>My Website </title>। यह tag SEO के लिए भी important होता है क्योंकि search engine इसी title को ranking में use करते हैं।
<body> Tag
<body> tag HTML page का visible हिस्सा होता है। जो कुछ भी user screen पर देखता है – text, images, headings, buttons, links – सब कुछ <body> के अंदर लिखा जाता है। यह tag page का सबसे बड़ा और important section होता है।
Example
इस example में सारे basic tags को proper nesting के साथ दिखाया गया है।
Request
अगर आपको यह article useful या interesting लगा हो, तो please इसे अपने dosto aur family ke साथ जरूर share करें। आपका एक छोटा सा कदम हमें और अच्छा content बनाने के लिए motivate करता है। Thank you!
ध्यान दें कि इस page पर आपको कुछ ads भी देखने को मिल सकते हैं। इसके लिए हम आपसे माफी चाहते हैं। हम इस content को तैयार करने में काफी मेहनत और time लगाते हैं, ताकि आपको valuable जानकारी मिल सके। इन्हीं ads की मदद से हम ये काम continue कर पाते हैं।
आपके support और understanding के लिए दिल से धन्यवाद।