Setting Up
Setting up your project
We're going to add a layer on top of our week 5/6 Cruise Ships project. If you haven't completed this up to step 6 then there is an example here which you can clone down and use.
-
Create a new repository on GitHub called
cruise-ships-guiwithout a README. -
cdinto yourcruise-shipsproject folder from weeks 5-6 and open up VS Code. If you haven't completed the challenge, clone our example repository -
Add a new remote to link your new Github repo to your prohject.
-
Create an
index.htmlfile in the project root, and populate the DOCTYPE (hint: type!followed byTabin the file, and VS Code will do this for you):

- Create a
cssdirectory in your project root. - Download normalize.css from here (right click and save into your
css/folder). - Create a new
style.cssfile inside yourcss/directory. - Create an
imagesdirectory inside your project root. - Download the image files for this week from here and extract them into your
images/folder. - Use the
linktag to import these CSS files into yourindex.htmlfile.
N.B. normalize.css is a set of css rules which override or strip away some of the default stylings applied by the browser.
The reason for this is that different browsers apply different default stylings to some elements, which can cause your page to get rendered differenly in different browsers.
Normalize aims to solve this problem, so it's normally work including it in your projects that use css.
If you have done everything correctly, your file tree should look like this:

And your index.html file should look like this: