Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS HTML: The Structural Foundation of Web Pages and Applications Test: Creating an HTML Element

Set the anchor tag so that it points to the top of the page. (Hint: you'll need the href attribute.

lm stuck

index.html
<!doctype>
<html id = "top">
  <head >
    <title>My trip to Spain</title>
  </head>
  <body >


   <p> Here is a picture of me in Spain last summer!
     <a>Go back to the top of the page.</a> </p>
    <a href = "#top">Top</a>
  </body>
</html>

2 Answers

Célestin Ballèvre
Célestin Ballèvre
8,805 Points

I think you just have to detele the space between href and = and "" like that href="#top". Sorry for my english.

Steven Parker
Steven Parker
215,939 Points

It looks like your img tag is missing.

Remember in task 1 you modified an img tag? It needs to stay there for the other tasks, but it looks like it got deleted.

You may need to start over from task 1.