HTML HTML Basics Images, Text and Links Understanding File Paths

Mia Casesa
Mia Casesa
2,502 Points

Can't get the link to Home tab in the articles.html to index.html

I think the file path is ok, an I don't see any syntax errors, so I'm not sure why it's not working.

<li><a href="../index.html">Home</a></li>


1 Answer

Mark Tripney
Mark Tripney
Full Stack JavaScript Techdegree Student 4,167 Points

Hey Mia. You need to tell the browser to go 'up' two levels to access index.html. So, your code should read...

<li><a href="../../index.html">Home</a></li>

This is necessary because the page you're viewing is in its own folder (2017), so you need to get out of that (up once) and then out of another folder (Articles) in order to reach the root, where index.html resides. Hope that helps!