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.

  1. Create a new file named index.html.
  2. Add the basic HTML structure:
  3. 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>
  4. Save and open index.html in your browser to view your website.

Feel free to customize the content and structure as you like.