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

Brandon Cilla
Brandon Cilla
1,199 Points

Why would I receive a 404 Not Found page error when I entered the href link?

I am not sure what I did wrong. I entered following code:

<p><a href=“#top”>This is a Third paragraph. </a></p>

I saved it, then refreshed the page. However, the page displayed: 404 Not Found page error. The requested URL /“ was not found on this server.

This is the page it brought me to: http://port-80-oveurot0v3.treehouse-app.com/#top

2 Answers

Remi Vledder
Remi Vledder
14,144 Points

Hi Bradon,

Is there a HTML element with the id "top" on the page? (<div id="top"></div>)

Kind Regards, Remi

Andrew Fennell
Andrew Fennell
1,413 Points

Hello Brandon!

I am assuming that you just want the page to return you to the top of the page. This can be achieved by using the following: href="#"

What you typed would take you to the element with the ID value of "top".

Let me know if that works!