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!

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


About <image> element

In my "footer" element,i just added the facebook image to link with the facebook.com. actually my image path is "image/facebook-wrap.png".when i am closing with the anchor element it just closes with <image> element by default. The code it is taking by default is, <a href="http://facebook.com/Rupesh anand"><image src="image/facebook-wrap.png" alt="facebook logo"></image>(it should be closed with </a>.but it is closing with </image> element) please clear my doubt..

sorry.in my question the text is missed

2 Answers

I'm not sure exactly what you mean. However most html elements need to be closed, like so:


If you can post your code, I may be able to see what you are referring to. :)

TJ Egan
TJ Egan
14,420 Points
<a href="www.facebook.com">
   <img src="image/facebook-wrap.png">


<img />

element is a self-closing element so the way you have written it is just fine.