Foundations of Web Design

Class Exercise 1:

Setting Up VS Code and Creating a Simple “Hello World” HTML Page

Goal:

Download and install VS Code, set up necessary extensions, and create a simple “Hello World” HTML page.

Instructions:

Download and Install VS Code:

  1. Go to the VS Code website.
  2. Download the installer for your operating system (Windows, macOS, or Linux).
  3. Run the installer and follow the on-screen instructions to complete the installation.

Open VS Code:

  1. Once installed, open VS Code.
  2. You should see the welcome screen with options to get started.

Install Extensions:

  1. Click on the Extensions icon in the Activity Bar on the side of the window (or press Ctrl+Shift+X).
  2. Search for and install the following extensions:
    • Live Server
    • Live Preview
    • Prettier
    • HTML CSS Support

Create a New Project Folder:

Download starter_code01.zip:

Creating a simple “Hello World” HTML page:

    <!DOCTYPE html>
    <html>
    <head>
        <title></title>
    </head>
    <body>
        <h1></h1>
    </body>
    </html>

Viewing Your Web Page:

  1. Run Your Project with Live Server:
    • Right-click on your “CE01.html” file and select “Open with Live Server”.
    • This will open your web page in your default browser.
    • You should now see your “Hello World” web page.
  2. Run Your Project with Live Preview:
    • Right-click on your “CE01.html” file and select “Show Preview”.
    • This will open your web page in a tab in VS Code next to your HTML file.