Jun 22, 2024
<!DOCTYPE html>
specifies HTML5 version.<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p>This is a paragraph.</p>
<a href="https://www.google.com">Google</a>
<img src="image.jpg" alt="A Description of Image">
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<table>
, <tr>
, <th>
, and <td>
.
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>24</td>
</tr>
<tr>
<td>Bob</td>
<td>30</td>
</tr>
</table>
<form action="submit.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username">
<label for="password">Password:</label>
<input type="password" id="password" name="password">
<input type="submit" value="Submit">
</form>
<header>
<h1>My Website</h1>
<nav>
<a href="#home">Home</a>
<a href="#about">About</a>
</nav>
</header>
<footer>
<p>Contact: email@example.com</p>
</footer>
<section>
<h2>Section Title</h2>
<p>Content within a section.</p>
</section>
<article>
<h2>Article Title</h2>
<p>Article content...</p>
</article>