<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
HTML Tags in Hindi
HTML Tags क्या होते हैं?
HTML Tags web page बनाने के छोटे-छोटे building blocks होते हैं। ये browser को बताते हैं कि कौन सा content किस तरह से दिखाना है। हर tag एक special काम करता है जैसे text को heading बनाना, paragraph बनाना या image दिखाना।
Tag की Basic Structure
हर HTML Tag angle brackets < > में लिखा जाता है। ज्यादातर tags की एक opening tag और एक closing tag होती है। Closing tag में / लगा होता है। Example:
- <p>This is a paragraph.</p>
यहां <p> opening tag और </p> closing tag है।
Paragraph Tag
Paragraph बनाने के लिए <p> tag use किया जाता है। यह text को एक अलग paragraph में दिखाता है। Example:
- <p>This is a simple paragraph.</p>
Heading Tags
Heading दिखाने के लिए <h1> से <h6> तक tags होते हैं। <h1> सबसे बड़ा heading होता है और <h6> सबसे छोटा। Example:
- <h1>Main Heading</h1>
- <h2>Sub Heading</h2>
Anchor Tag
Link बनाने के लिए <a> tag use किया जाता है। इससे आप एक page से दूसरे page पर जा सकते हो। Example:
- <a href="https://www.google.com">Visit Google</a>
Image Tag
Image दिखाने के लिए <img> tag होता है। इसमें src attribute से image का path और alt से description लिखा जाता है। Example:
- <img src="image.jpg" alt="My Image">
List Tags
List बनाने के लिए दो main tags होते हैं – <ul> unordered list और <ol> ordered list। List के items <li> से बनते हैं। Example:
Div Tag
<div> tag का use content को group करने और layout design में किया जाता है। यह एक container की तरह काम करता है। Example:
<div>
<p>Paragraph inside div.</p>
</div>
HTML Tags की मदद से आप किसी भी web page का basic structure बना सकते हो। हर tag का अपना काम होता है और इन्हें मिलाकर ही पूरी website बनती है। HTML सीखने की शुरुआत इन्हीं tags से होती है।
Example
<!DOCTYPE html>
<html>
<head>
<title>My First Website</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a simple HTML page.</p>
</body>
</html>
Request
अगर आपको यह article useful या interesting लगा हो, तो please इसे अपने dosto aur family ke साथ जरूर share करें। आपका एक छोटा सा कदम हमें और अच्छा content बनाने के लिए motivate करता है। Thank you!
ध्यान दें कि इस page पर आपको कुछ ads भी देखने को मिल सकते हैं। इसके लिए हम आपसे माफी चाहते हैं। हम इस content को तैयार करने में काफी मेहनत और time लगाते हैं, ताकि आपको valuable जानकारी मिल सके। इन्हीं ads की मदद से हम ये काम continue कर पाते हैं।
आपके support और understanding के लिए दिल से धन्यवाद।