Your Personal Portfolio Website: 1

Creating your personal portfolio website with four pages.

Introduction

Your personal portfolio website is based on the following four web pages:

  • Home page  (in main folder)
  • Privacy page  (also in main folder)
  • Portfolio page  (in πŸ“ portfolio sub-folder)
  • Contact page  (in πŸ“ contact sub-folder)

Your four pages will have the following web addresses.

project images

For your inspiration, here are some sample portfolio websites from web designers and developers.

Some sample developer portfolio websites

For your inspiration, here are some sample portfolio websites from web designers and developers.

And here are some sample portfolio websites from students.

1: Rename your old index.html web page

In your 'main' πŸ“ websites folder, you already have a file named index.html. Before continuing, rename this file to exercises.html.

2: Download images

Your next step is to download the following seven images to your πŸ“ websites/assets/img sub-folder.

3: Download your custom.css stylesheet file

Do you want a light-coloured (or mostly light-coloured) website?

Or a dark-coloured (or mostly dark-coloured) website?

screenshot

Download one of these two files to the πŸ“ assets/css sub-folder of your 'main' websites folder.

If this file downloads to your πŸ“ Downloads folder, delete it from there after you copy it to your πŸ“ websites/assets/css folder.

4: Download your Home page

Download one of these two files to your 'main' websites folder.

Introduction to HTML

If this index.html file downloads to your πŸ“ Downloads folder, delete it from there after you copy it to your πŸ“ websites folder.

Your πŸ“ Downloads folder can contain only one file named index.html at one time.

If you try to download a second file named index.html to your πŸ“ Downloads folder, Windows will automatically rename this second file to index-1.html or index-2.html and so on.

Open the following two files in VS Code.

  • The index.html file in your 'main' websites folder.
  • The custom.css file in your 'main' assets/css sub-folder.
File Explorer VS Code

5: Update your Home page

In your Home page are <nav>, a <header>, one <section> and a <footer> content containers.

Inside the <section> are three <div class="col-3"> tags, each one displaying details of a single project.

screenshot

Replace the second of these three with the following.


<div class="col-3">
    <figure class="photos-zoom photos-brightness" style="overflow: hidden;">
        <a href="store/index.html"><img src="assets/img/project-store.png" alt="Store project"></a>
    </figure>
    <h3>Book Store</h3>
    <p>An online book store with affiliate links to Amazon.</p>
    <a href="store/index.html" class="btn btn-solid btn-soft"><span>View project</span><i class="fas fa-arrow-right"></i></a>
</div>

On your Home page, your three projects should now look as follows. (The text and background colours may be different.)

screenshot

6: Download your Portfolio page

You should already have a πŸ“ portfolio folder in your 'main' websites folder.

Download one of these two files to your πŸ“ portfolio folder.

Introduction to HTML

If this index.html file downloads to your πŸ“ Downloads folder, delete it from there after you copy it to your πŸ“ websites/portfolio sub-folder.

Your six projects should look as shown below. (The text and background colours may be different.)

screenshot

7: Download your Contact page

Create a new folder in your 'main' websites folder named contact.

Download one of these two files to your new πŸ“ contact folder.

Introduction to HTML

If this index.html file downloads to your πŸ“ Downloads folder, delete it from there after you copy it to your πŸ“ websites/contact sub-folder.

If this file downloads to your πŸ“ Downloads folder, delete it from there after you copy it to your πŸ“ websites/contact folder.

As part of the downloading process, your web browser may have changed the web address in the Privacy hyperlink near the bottom of the Contact web page. See below.

screenshot

If this has happened, update the Privacy hyperlink as shown below.


<p class="privacy"><a href="../privacy.html">Privacy & Legal</a></p>

8: Download your Privacy web page

Download the file below to your 'main' website folder.

If this file downloads to your πŸ“ Downloads folder, delete it from there after you copy it to your πŸ“ websites folder.

You do not need to update any details on this web page.

10: Add the Google Analytics and Inspectet code

In the <head> of your Home, Portfolio and Contact web pages, ensure you have added a link to your Google Analytics and Inspectlet accounts. They should look as shown below.

screenshot

11: Personalise your meta tags

Each of your three sample web pages contains template text for the page's title and description tags. These two tags are examples of so-called meta-tags.

Your first task in personalising the sample web pages is to update the content of the meta tags with text of your own choice. Follow the steps below.

  1. In VS Code, open your web pages.   index.html
    πŸ“ contact/index.html
    πŸ“ portfolio/index.html
  2. In the <head> of each web page, in the title and description tags, replace the sample text with your own details.

Here are a few examples.

Home page:

project images

Portfolio page:

project images

Contact page:

project images

See the helpful links below for guidance on using the title and description meta tags on your web pages.

Introduction to HTML

DO NOT use the same meta tags on different web pages of the same website.

This 'confuses' Google and other search engines.

"When two, or more, of your pages contain similar title tags, it falls upon the search engine to try to determine which page the user really wants to see in their results. What happens is that some of your pages will get preferred ranking status, while others get ignored completely. " Source.

13: Create and add your cookie privacy message

Create a β€˜pop-up’ cookie consent message and add it to your Home, Portfolio and Contact pages.

This is required under EU law for any web page that uses Google Analytics.

14: Update the endpoint of your contact form

You need update your contact/index.html web page with the endpoint code you received from the Formspree website.

  1. In VS Code, display the contact/index.html web page.
  2. Update the form's action value by copying-and-pasting the endpoint value from Formspree. See the example shown below. github-signin
  3. Save your contact/index.html file.

You can check your form is working by entering some details and clicking the Send button.

15: Download your error-404.html web page

A 404.html web page is the standard file for displaying a β€œPage Not Found” message. It shows up when a visitor tries to visit a page on your website that doesn’t exist β€” maybe because:

  • They typed the URL wrong,
  • You deleted or moved a file
  • A link was broken.

When you upload a 404.html file to GitHub, GitHub will automatically display this web page when necessary. No further configuration is required.

Download one of these two files to your 'main' websites folder.

βœ… Instead of showing a confusing browser error, your site shows a friendly, helpful page.

16: Upload your files to GitHub

From your 'main' folder on your computer, upload the following files and folders to your account on GitHub.

screenshot

From your πŸ“ portfolio folder on your computer, upload the index.html file to your portfolio folder on GitHub.

screenshot

18: Create and submit a sitemap

A sitemap.xml is a special file that lists all the pages on your website, written in a format that search engines like Google can read and understand.

Think of it like a map for robots, not for people.

  • It helps search engines find and index all your pages correctly.
  • It's especially useful if your site has many pages, subfolders, or new pages that aren’t linked clearly yet.

Use the website below to create a sitemap:

https://www.xml-sitemaps.com

After you download your sitemap.xml file, you can edit it as appropriate. For example, you may not want to include the files in your πŸ“ exercises folder in the sitemap file.

When finished, upload the sitemap.xml file to your top-level folder on GitHub.

Sign in to your account on Google Search Console and submit your sitemap.

screenshot

See the next Tutorial to continue building your personal portfolio website.