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

svg object inside an anchor element is not clickable

hello i am trying to create a list of social icons and i want to use svgs in the list items instead of using images but the problem is that inside the anchor the svg is not clikable. here is my html: <ul> <li><a href="#" title="find me on facebook"><object data="images/facebook.svg" type="image/svg+xml"><!--[if lte IE 8 ]--><img src="images/facebook.png" alt="facebook"><!--![endif]--></a></object></li> <li>....</li> </ul>

Seem to be missing the html

2 Answers

i am trying to post it but i can' t,anyway it is an object tag inside an a tag

the easiest way to show your code is by using codepen.io