My code's not working!


  1. Double check all your files are saved.
  2. Check each quote has a pair.
  3. Do all of your HTML tags have a closing tag?
  4. Ask a mentor for help!

Add a Footer

The last section of our HTML document is going to be the <footer>. Let’s add some links to social media accounts. That way, anyone who visits or your page can find out how to contact you.

In profile.html just below the closing main tag, add:


We want our links to be icons, in order to do this, we’re going to wrap anchor tags (<a>) around image tags (img).

First, let’s add a link to facebook.

    <a href="" target="_blank"><img src="assets/social_media/facebook-logo.svg" alt="Facebook Icon"></a>

Let’s walk through what the attributes on our anchor tag are doing.

The target="_blank" opens in a new browser tab.

The href tells our link what website it should open when we click our link.

Let’s add more anchor tags for the rest of our social media profiles, edit the code inside of your <footer> tag to match:

    <a href="" target="_blank">Facebook</a>
    <a href="" target="_blank">Linkedin</a>
    <a href="" target="_blank">Twitter</a>
    <a href="" target="_blank">Email me</a>

Save profile.html and refresh the page.

add footer

Let’s also add a link to our social media profiles in our sidebar.

Back in the aside tag, add to your ul:

    <a href="#social-media">Social Media</a>

Then, go back and add an id to your opening footer tag like, so:

  <footer id="social-media">

Save profile.html and refresh your page. Double check that your links in your side bar are working.