Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialME HASEN
1,121 Pointsi want to link two pages but it's not linking can you tell me what is wrong
<li><a href="../index.html">home</a></li> <li><a href="#">about</a></li> <li><a href="#">articles</a></li> <li><a href="#">contact</a></li> when i click home it's not taking me to index.html page
1 Answer
Armin Kadic
16,242 PointsAll I can think about is the location of the index.html file.
<a href="index.html"> index.html is located in the same folder as the current page
<a href="pages/index.html"> index.html is located in the pages folder in the current folder
<a href="/pages/index.html"> index.html is located in the pages folder at the root of the current web
<a href="../index.html"> index.html is located in the folder one level up from the current folder
Hope this helps.