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

[SOLVED] When I click on my portfolio page, it fails. I can only access the portfolio page when i preview the site.

It states the URL is not found, is the portfolio tab and index.html not linked? if not, how do i link them?

Can you provide a code snippet or more detailed explanation to show what is actually going on? You might be missing a link reference in your index ...

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nicholas Kampouris | Entrepreneur</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,700,700italic,400italic,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Nicholas Kampouris</h1> <h2>Entrepreneur</h2> </a> <nav> <ul> <li><a href="index.html" class="selected">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav>

Here is a snippet of my index

Nick it is difficult to see what is actually happening in your browser and your question is a little confusing to me. Your index page IS your portfolio page, so you shouldn't get a new page load when you click on portfolio. Is this the issue you're having? Please elaborate for me.

Yeah im sorry if im being vague! but that is exactly what is happening, i get a new page load when i click on portfolio, rather than just returning to my portfolio page. That snippet was of my index.html. for some odd reason when i preview my site it takes me first to a screen that looks like this:

Index of /

Index.html about.html css/ img/

when i click index.html (which i figure is the website) thats when i can actually view the website. I feel like the issue is from something very early on that i did not correct, which makes it harder to pinpoint. im sorry if im not detailed enough, im just not exactly sure how to articulate.

I noticed you don't have a

<!DOCTYPE html>

Could this be the issue?

No, I have that, i just didnt include it in my snippet. any other suggestions?

Did you close your header tag?

Yes I have, I think the issue is part in parcel of the fact that whenever i preview my workspace it opens this

http://port-80-t1mttha504.treehouse-app.com/

i open the site by clicking the index.html tab. youll see what i mean. but i think thats whats wrong. dont know how to fix it.

I FIGURED IT OUT! So i labeled my file Index.html rather than index.html which messed me up entirely. Thank you so much for your help.

Hi nicholas kampouris, glad you got it sorted, I've marked your question as solved.