What you'll build

You'll build a multipage website with some reasons why we choose to learn web development.

It'll have the following features:

Here's what it might look like:

What you'll learn

What you'll need

Open the assignment

  1. Open your GitHub Classroom assignment from the link in Google Classroom
  2. Check that you're logged in with your GitHub account
  3. Check the name of the assignment is correct and then accept it. GitHub will make a copy of the template for you.
  4. Click on the link to your repository

Clone your repository

  1. Click on the green Code button and choose Open with GitHub Desktop
  2. Choose a place (such as Documents) to download your code to

Get ready to code

  1. Click on the green Code button and choose Open with GitHub Desktop
  2. If you're working locally (on your own device), choose a place (such as Documents) to download your code to
  3. Once it has cloned to your computer, click the Open in Visual Studio Code button (or press Command + Shift + A on MacOS or Ctrl + Shift + A on Windows)
  4. Open the file called index.html

Now you're ready to get coding!

Read over your HTML and compare it with what you see on the page in the browser.

Often your client will give you the content to add to a website. This is the content you need to add to the other-careers.html page:

Other Coding Careers

Web dev is a great start but it's only one of many different careers in digital technologies. Here are some of the others.

and this is what the page should look like in the browser:

You now have two different web pages but no way to get from one to the other. To do this, we'll need links.

Copy and paste this code below the main heading of your index.html file:

<a href="opportunities.html"> Web Dev Opportunities </a>

Save and check your website in your browser. You should see a link that you can click to take you to your second page.

Customise

Unfortunately, there's no way back to the home page.

The navigation of your website could be made easier for your users in two ways:

Update the code on your index.html file to include all the pages, including the current one:

<a href="index.html"> Home </a>
<a href="opportunities.html"> Web Dev Opportunities </a>
<a href="other-careers.html"> Other Coding Careers </a>

Customise

The other pages need to be tidied up as well.

Copy and paste this code at the bottom of your front page:

<style>
  * {
    font-family: sans-serif;
  }

  h1 {
    text-align: center;
  }

  a {
    text-decoration: none;
    color: black;
    border: 1px solid black;
    border-radius: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  a:hover {
    color: white;
    background: black;
  }
</style>

Customise

Style the page your way.

display: block;

Download this image and save it into the same folder as your index.html file.

Rename the image to html-logo.svg so that it's easier to type into the code.

Add this line into the code on your index.html.

<img src="html-logo.svg">

If your image isn't showing, check:

Customise

Adjust your image the way you want it to look:

Often, images aren't the right size and need to be styled to fit into the web page.

First, we'll change the size of your image. Copy and paste this code into your style element:

img {
  width: 50rem;
}

Customise

Adjust your images the way you want them to look:

Congratulations, the first iteration of your site is complete.

You've created three pages and linked them together into a site.

Along the way, you've learnt about these parts of coding.

(means new things in this project)

HTML code

a for links

href attribute in a opening tags

img for images

src attribute in img opening tags

HTML vocabulary

attribute - extra information inside the pointy brackets of an opening tag, such as a file name

CSS code

width: for the width

height: for the height

CSS vocabulary

Elements on a web page can be in different states, such as being hovered over.

Copy and paste this code into your style element:

a:hover {
  background: black;
}

Open your page in the browser and hover over your links with your cursor.

Experiment with :hover

Usually, a website will indicate which page you're on in the list of links by highlighting it a different color.

Most frequently, a good Google search will be the best option. Remember to include the keywords "CSS" and "class" so that Google will give you the best results (skip past the ads though!).

If you don't find anything useful, try one of these.