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 trial

HTML

Suresh Gaikwad
seal-mask
.a{fill-rule:evenodd;}techdegree
Suresh Gaikwad
Front End Web Development Techdegree Student 2,491 Points

Does anyone know how to do this? Edit the navigation link for Home to navigate to the index.html.

I am doing project-1 Techdegree front end development course. I am not able to understand what that above question means. I did the following but nothing happens in the browser.

      <li><a href="index.html">Home</a></li>
      <li><a href="#contact">Contact</a></li>
      <li><a href="#experience">Experience</a></li>

Please help...

1 Answer

Cory Harkins
Cory Harkins
16,500 Points

What you are asking for is information on File Path Notation.

The href attribute takes a file/url as a value, so that the link itself can reference the value and send you somewhere.

The li that contains the text Home is referencing index.html as the "url."

Inside of your local folder (or workspace) your index.html file should be accessible from the root folder, and if the html you provided is code directly from index.html, then the browser should do nothing at all as it is referencing itself.

In the even that your code is from, say, the contact.html file. Then index.html's href value should look a little different ONLY if contact.html is inside of a different directory(folder). It is likely though that all of your pages will stay within the root directory and filepath notation will not be relevant at this time.

<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="experience.html">Experience</a></li>
Suresh Gaikwad
seal-mask
.a{fill-rule:evenodd;}techdegree
Suresh Gaikwad
Front End Web Development Techdegree Student 2,491 Points

Thanx Cory. I was thinking the same thing. I have done the same thing that you said with my experience list. I have a new page for it. The thing is that question was asked in the project and I am unable to understand of what they mean by that. Thank you again for your reply