HTML ke Basic Tags aur Structure
HTML me har content ko hum tags ke andar likhte hain. Ye tags web page ke alag-alag parts ko define karte hain. Aaiye kuch important basic tags aur unka structure samjhte hain:
Basic HTML Document Structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Title</title>
</head>
<body>
<h1>Heading 1</h1>
<p>Ye ek paragraph hai.</p>
</body>
</html>
Important Tags
<!DOCTYPE html>: Browser ko batata hai ki ye HTML5 document hai.<html>: Ye root tag hota hai jo pure HTML document ko wrap karta hai.<head>: Isme metadata aur page ka title hota hai jo browser tab me dikhta hai.<title>: Webpage ka title define karta hai.<body>: Iske andar webpage par dikhta saara content hota hai.<h1> ... <h6>: Heading tags hote hain; h1 sabse bada aur important heading hota hai.<p>: Paragraph ke liye use hota hai.<a>: Hyperlink banane ke liye use hota hai.<img>: Image insert karne ka tag (ye ek empty tag hai, close nahi hota).<ul>aur<ol>: Unordered aur ordered lists ke liye.<li>: List item, lists ke andar use hota hai.<br>: Line break ke liye.
Example: Basic Page with Tags
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Webpage</title>
</head>
<body>
<h1>Welcome to RKTechGame</h1>
<p>Ye mera pehla webpage hai jisme main basic HTML tags use kar raha hoon.</p>
<a href="https://www.example.com">Visit Example</a>
<br>
<ul>
<li>HTML sikho</li>
<li>CSS sikho</li>
<li>JavaScript sikho</li>
</ul>
</body>
</html>