HTML Exercises
Create a Simple Website
In this exercise, you will learn how to create a basic website using HTML. Follow these steps:
Task: Create a basic HTML page with a header, a paragraph, and an image.
- Create a new file named
index.html. - Add the basic HTML structure:
- Save and open
index.htmlin your browser to view your website.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Simple Website</title>
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
</header>
<main>
<section>
<h2>About Me</h2>
<p>This is a paragraph about me.</p>
</section>
<section>
<h2>Contact</h2>
<p>Here is how you can contact me.</p>
</section>
</main>
<footer>
<p>© 2024 My Simple Website</p>
</footer>
</body>
</html>
Feel free to customize the content and structure as you like.