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 Anchor Tags

Michael Hay
Michael Hay
1,311 Points

Clicking on the third paragraph leads to 404 not found.

<div class="card"> <h2>Background</h2> <p> I’m an aspiring web designer who loves everything about the web. I've lived in lots of different places and have worked in lots of different jobs. I’m excited to bring my life experience to the process of building fantastic looking websites. </p> <p> I’ve been a professional cook and gardener and am a life-long learner who's always interested in expanding my skills.</p> <p><a href="top">this is a third paragraph</a></p> <p>is is a fourth paragraph </p> </div> <ul> <li>To learn more, <a href="resume.html">view my resume.</a></li> </ul> </div>

I"m new art programming. I found that if I put <a href="#top"> it sends me to the top of the page.

But I also found out that if I put, <a href="#"> (without the "top") it also does the exact same thing. Is the word "top" even necessary?

1 Answer

Michael Hay
Michael Hay
1,311 Points

Figured it out myself, missing a #. Will take more time looking at the code before asking.

David Austin
David Austin
1,217 Points

Good deal! For future reference: check out the markdown cheatsheet for wrapping your code it. It's available when you make a new post! :)