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 Build the Contact Page

contact page will not work

the index.html and the about.html pages work perfectly but the contact.html page receives the error page not found

I use the same highlight all copy, paste step I used for the about.html but changed the selected class to contact.html very confused why it worked the first time and not now any help is appreciated thanks

Henry Rroga
Henry Rroga
9,104 Points

Please provide the HTML code of the header in the index.html file and about.html file.

Henry Rroga
Henry Rroga
9,104 Points

When does the error occur? What are pressing when the "Page Not Found" appears?

when I click the link to go to the contact page

4 Answers

<header> <a href="index.html" id="logo"> <h1>Skyler Moon</h1> <h2>Junior</h2> </a> <nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="about.html"class="selected">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header>

<header> <a href="index.html" id="logo"> <h1>Skyler Moon</h1> <h2>Junior</h2> </a> <nav> <ul> <li><a href="index.html" class="selected">Home</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header>

Henry Rroga
Henry Rroga
9,104 Points

First check the exact name of the file (contact.html). You could have misspelled it. Then make sure it is not inside any folder.

its spelled exactly the same in every case its used in and its not in a folder right under about.html

sorry for some strange reason its working just fine now thank you for your help

Henry Rroga
Henry Rroga
9,104 Points

No problem. Everything seemed fine.

Nguyễn Tú
Nguyễn Tú
2,333 Points

the same situation here, how can it work? Need help bro.