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 trialSkyler Moon
12,670 Pointscontact 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
Henry Rroga
9,104 PointsPlease provide the HTML code of the header in the index.html file and about.html file.
Henry Rroga
9,104 PointsWhen does the error occur? What are pressing when the "Page Not Found" appears?
Skyler Moon
12,670 Pointswhen I click the link to go to the contact page
4 Answers
Skyler Moon
12,670 Points<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>
Skyler Moon
12,670 Points<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
9,104 PointsFirst check the exact name of the file (contact.html). You could have misspelled it. Then make sure it is not inside any folder.
Skyler Moon
12,670 Pointsits spelled exactly the same in every case its used in and its not in a folder right under about.html
Skyler Moon
12,670 Pointssorry for some strange reason its working just fine now thank you for your help
Henry Rroga
9,104 PointsNo problem. Everything seemed fine.
Nguyễn Tú
2,333 Pointsthe same situation here, how can it work? Need help bro.
Skyler Moon
12,670 PointsSkyler Moon
12,670 PointsI 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