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 How to Make a Website Adding Pages to a Website Add a New Page

When I preview and hit about its not taking me to About.html..

<li><a href="index.html">Portfolio</a></li> <li><a href="about.html" class="selected">About</a></li> <li><a href="contact.html">Contact</a></li> </ul>

when i click on about it shows me the msg

The requested URL /About.html was not found on this server.

6 Answers

Tobias Helmrich
Tobias Helmrich
31,602 Points

Alright, thank you! It should actually work like this. Have you tried clearing your browser's cache? That could be a possible reason for the problem.

Could you share a snapshot of your workspace with us? Follow the instructions on this link to make a snapshot of your workspace.

Make sure that 'about.html' is spelled the exact same as the URL you are directing it to - case-sensitive. Perhaps that would help.

Tobias Helmrich
Tobias Helmrich
31,602 Points

Hey again, Dalia,

could you please post the code in here once again as well? :)

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Dalia Anuziene | Photographer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Lora:400,400italic,700,700italic|Montserrat' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Dalia Anuziene</h1> <h2>Photographer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html" class="selected">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <img src="img/dalia.jpg" alt="Photograph of Dalia Anuz" class="profile-photo"> <h3>About</h3> <p>Hi, I'm Dalia Anuz! This is my design portfolio where i share all of my favorite work. When i'm not designing i spend my time with my loved ones or just listening good music and relaxing.</p> <p>If you'd like to follow me on Twitter, my username is <a href="http://twitter.com/dalia">@dalia</a></p> </section> <footer> <a href="http://twitter.com/dalia"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/dalia"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>© 2015 Dalia Anuziene.</p> </footer> </div> </body> </html>

i changed and in index.html still not working i don't know what else i could do :/ to make it work :(

huckleberry
huckleberry
14,636 Points

Everything in there looks fine... are you doing this in workspaces or did you download the project files and working on it locally?

I'm only asking because perhaps the problem is that the about.html files isn't in the same directory as your index.html and thus the path isn't working properly.

Please check WHERE the about.html file is and if it's not in a different folder.

Cheers,

Huck - :sunglasses:

Tobias Helmrich
Tobias Helmrich
31,602 Points

Hey Huck,

I already checked the workspace of this course and if the file structure wasn't changed the about.html should be in the same folder. But a snapshot of the workspace would definitely help to see what the problem could be.

huckleberry
huckleberry
14,636 Points

Heya Tobias Helmrich ,

Yeah, I mean, I know it's set up that way but I thought she might be doing it locally in which case, frequent problem... buuuut even if it were in the workspace, we've all seen enough "oh, ooops, I accidentially deleted *page/document* from my workspace" and "*HALP!! I deleted the index.html from my workspace how do I get it back pls??&#42" around here that I've started to immediately factor that into a possible solution :laughing:

Good job on the caching issue. I'll remember that.

Cheers,

Huck - :sunglasses:

Tobias Helmrich
Tobias Helmrich
31,602 Points

You're absolutely right! I was just thinking about workspaces the whole time when I commented here and completely forgot about the local part you mentioned which could've caused the problem as well. :) Oh and about the workspaces: Yes, it was also suspicious to me so I wanted to have the snapshot to make sure everything is alright there! :)

yeyyyyyy its working i did what you said cleared my history then checked again and it working thanks guys for your help really appreciated thanks again :)))))

Tobias Helmrich
Tobias Helmrich
31,602 Points

Yay! I'm glad you got it working! :)

huckleberry
huckleberry
14,636 Points

Awesome, glad to hear it!

Cheers,

Huck - :sunglasses: