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 trialLonnie Parker
301 PointsAnchor and Id Problem
Help please! I keep getting a webpage not found response,
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Page</title>
</head>
<body>
<a href="#some_text">My Link</a>
<br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br><br></br><br></br><br></br><br></br>
<br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br><br></br><br></br><br></br><br></br><br></br>
<br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br><br></br><br></br><br></br><br></br><br></br>
<br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br><br></br><br></br><br></br><br></br><br></br>
<p id="some_text">The anchor takes us here.</p>
</body>
</html>
3 Answers
James Gill
Courses Plus Student 34,936 PointsLonnie,
Sorry, your code isn't clear. I see there's not a closing > bracket on the closing </html> tag, but I'm not sure what page isn't found--you have no links.
Marty Hitchcock
13,108 PointsUnsure on the problem you are having. It helps to copy paste your code here so we can see what you mean. But at a guess:
You need an opening HTML tag as well as saying it in the doctype.
<!doctype html> <html>
My Page
My Link
The anchor takes us here.
</html>
Alina Lisina
Courses Plus Student 1,136 Pointsinsert "#" after href="
So it should look like => a href="#some_text"