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

Heather Woods
Heather Woods
5,330 Points

why is my hyperlink including my paragraph underneath

In my footer, I have buttons to twitter and to facebook. following my facebook link I have a paragraph of copywrite info. Why is my website preview creating a facebook link out of the copywrite paragraph? I closed the facebook link.

<footer>
  <a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo"</a>
  <a href="http://facebook.com/heatherelizabethwoods"><img src="img/facebook-wrap.png" alt="Facebook Logo"</a>
  <p>&copy; 2015 Heather Woods.</p>
</footer>
Tara Edwards
Tara Edwards
6,521 Points

After alt="Facebook Logo", you forgot the closing bracket >. Add that and you should be fine.

3 Answers

It might have something to do with how your image tag doesn't have a closing bracket.

<a href="http://facebook.com/heatherelizabethwoods"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>

Aaron Colon
Aaron Colon
1,875 Points

Hi Heather,

Jenna is correct, you forgot to close your img tags properly. See below for an example:

<img src="img/twitter-wrap.png" alt="Twitter" />

I agree, The herf tag should always look like <a href=""><img src="" alt=""></a>