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
RUPESH BASUDE
2,932 PointsAbout <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..
2 Answers

Erik Nilsen
20,433 PointsI'm not sure exactly what you mean. However most html elements need to be closed, like so:
<a></a>
<footer></footer>
If you can post your code, I may be able to see what you are referring to. :)

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

Arthur Head
12,624 Pointsthe
<img />
element is a self-closing element so the way you have written it is just fine.
RUPESH BASUDE
2,932 PointsRUPESH BASUDE
2,932 Pointssorry.in my question the text is missed