AgainColours
The exam

7 of 7

The same menu on every page

This lesson is closed. Finish the one before it. Do the practice. Pass the assessment. Then this one opens.

Go to Pictures that are links

Back to the lesson. Three tries are used. Read this again, then try the code.

You finished. The lesson is open again.

Look here

In plain words

Build one page until the menu works. Then duplicate the file four times and change the middle. The header, the menu, the footer, and the link to company.css stay. What changes is the h2 and the content inside main, and which link has class="here".

1 of 3

Line by line

  1. Duplicate the fileSave index.html as about.html. Replace the middle. Do that again for services, clients, and contact.
  2. Move class="here"On each file, the current page’s link is the dark one. The other four stay light.
  3. One company.cssDo not make form.css, social.css, and home page.css. Spaces in a file name break the link. One shared file keeps the menu looking the same.
  4. Click all fiveThe marker will. If one word does nothing, fix the href before you look at colours.

A friend wrote this

This is not your file, and it is not the version to copy. It is here so you can see the difference after the right labels.

<link rel="stylesheet" href="home page.css">
<link rel="stylesheet" href="form.css">
<link rel="stylesheet" href="social.css">

A friend used a different paint file on each page, and one of the names has a space. The pages then drift apart, and a spaced name often fails to load. Point every page at company.css.

Practice

This page brought its own paint file. Point it at the shared one.

Assessment

The lesson is closed. Pick one answer each, then mark it. A wrong answer tells you why, what to do, and what to remember.

You duplicated index.html to make about.html. What do you change?
Before you submit, what do you click?