Jul 15, 2024
index.html (lowercase, no spaces).<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Web Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is my first web page.</p>
</body>
</html>
index.html file and use “Open with Live Server” to see the changes in real-time in the browser. <style>
body {
font-size: 20px;
background-color: #333;
color: whitesmoke;
}
</style>
<meta charset="UTF-8">
<html lang="en">
<!DOCTYPE html>
- Validation Process: Upload the `index.html` file and ensure no errors or warnings.
name and author tags. <meta name="author" content="Dave Gray">
<meta name="description" content="Learning HTML with Dave Gray">
<link rel="icon" href="HTML5.png" type="image/x-icon">
<link href="main.css" rel="stylesheet" type="text/css">
<h1>Main Title</h1>
<h2>Sub Title</h2>
<h3>Sub-sub Title</h3>
<p>This is a paragraph.</p>
<ol>
<li>First Item</li>
<li>Second Item</li>
</ol>
<ul>
<li>First Item</li>
<li>Second Item</li>
</ul>
<dl>
<dt>Term</dt>
<dd>Description</dd>
</dl>
<a> tags.<a href="https://example.com">External Link</a>
<a href="/about">Internal Link</a>
<a href="https://example.com" target="_blank">Open in new tab</a>
<img src="image.jpg" alt="Description" width="300" height="200">
<figure>
<img src="image.jpg" alt="Description">
<figcaption>Caption for the image.</figcaption>
</figure>
<header>Header Content</header>
<main>Main Content</main>
<footer>Footer Content</footer>
<nav>Navigation Links</nav>
<section>Section Content</section>
<table>
<caption>Table Caption</caption>
<thead>
<tr><th>Header</th><th>Header</th></tr>
</thead>
<tbody>
<tr><td>Data</td><td>Data</td></tr>
</tbody>
<tfoot>
<tr><td colspan="2">Footer</td></tr>
</tfoot>
</table>
scope for headers (col or row).colspan and rowspan for spanning multiple cells.<form action="/submit" method="post">
<label for="name">Name:</label><input type="text" id="name" name="name">
<fieldset>
<legend>Group Name</legend>
</fieldset>
for space, © for copyright).alt for images, label for form inputs).