HTML (HyperText Markup Language) is the standard markup language used to create web pages. It structures content using elements like headings, paragraphs, images, and links.
.html extension (e.g., index.html).<!DOCTYPE html>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Smaller Heading</h3>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<p>Line one.<br>Line two.</p>
<hr>
<p>After horizontal line.</p>
<a href="https://www.google.com">Go to Google</a>
<img src="https://via.placeholder.com/150" alt="Placeholder Image">
Ordered List:
<ol>
<li>First</li>
<li>Second</li>
</ol>
Unordered List:
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
<form>
Name: <input type="text"><br><br>
Email: <input type="email"><br><br>
<input type="submit">
</form>
<button>Click Me!</button>
<div style="color: red;">This is a div</div>
<span style="color: blue;">This is a span</span>
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>Welcome to My Site</h1>
<p>This is a paragraph on my web page.</p>
<h2>Links</h2>
<a href="https://www.google.com">Visit Google</a>
<h2>Image</h2>
<img src="https://via.placeholder.com/150" alt="Example image">
<h2>List</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
</body>
</html>