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 Introduction to HTML and CSS (2016) 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! :)