Your First Website

Let's create your first website!

Note: the following instructions are designed to be performed in VS Code, but you can create websites almost anywhere!

Step 1: Create a new .html file

Open VS Code and create a new file by clicking on the "New File" button in the Explorer sidebar.

Screenshot of creating a new file in VS Code
The button that looks like a new sheet

By convention, the first page in a website is usually called index.html

Step 2: Copy and Paste the following code into your file

            
<html>
    <h1>My First Website</h1>
    <p>Hello World!</p>
</html>
            
        

Step 3: Look at your Website!

Right click on your file, then select "Copy Path"

Screenshot of copying the path in VS Code
The option that says "Copy Path"

Open your browser and paste the path into the URL bar. You should see your website!

Congratulations, you just made your first website!