Foundations of Web Design

Class Exercise 5:

Styling an HTML page with CSS

Goal:

Style an existing HTML File using these CSS Properties:
  • background-color
  • font-size
  • color
  • text-align
  • border
  • margin
  • padding

Instructions:

Download starter_code05.zip:

Setup your Files:

Fill in your CSS File:

    body {

    }

    .header {

    }

    .navigation {
    
    }

    .content {
    
    }

    .contact {
    
    }

    .footer {
    
    }
            

Viewing Your Web Page:

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