HTML Basic Notes
1. HTML Kya Hai?
HTML = HyperText Markup Language
Website ka structure banane ke liye use hoti hai.
Ye programming language nahi, markup language hai.
2. Basic Structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
Content yaha likhte hain
</body>
</html>
3. Important Tags:
<h1> to <h6> = Heading tags
<p> = Paragraph
<br> = Line Break
<hr> = Horizontal Line
4. Text Formatting Tags:
<b> Bold </b>
<i> Italic </i>
<u> Underline </u>
<strong> Important Text </strong>
<em> Emphasized </em>
5. Link:
<a href="[Link] Here</a>
6. Image:
<img src="[Link]" alt="Image" width="200">
7. List:
<ul> Unordered List </ul>
<ol> Ordered List </ol>
<li> List Item </li>
8. Table:
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Ashish</td>
<td>20</td>
</tr>
</table>
9. Form:
<form>
Name: <input type="text">
Password: <input type="password">
<input type="submit">
</form>
Important Points:
- HTML file extension .html hota hai.
- Tags mostly pair me hote hain (Opening + Closing).
- Kuch tags self-closing hote hain: <br>, <hr>, <img>