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 trialenriquedealba
4,678 PointsCan't replace <img> tag with <object> to change from gif to svg file.
I have tried copying exactly the same syntax used in the video, with and without the <a> and <img> tags. Here is my code:
<object data=”img/love-at-first-bite.svg” type=”image/svg+xml” class=”chart">
<a href="img/love-at-first-bite.svg">
<img src="img/love-at-first-bite.gif" alt="Love at First Bite">
</a>
</object>
What am I doing wrong? Please help! Thanks in advance.
3 Answers
enriquedealba
4,678 Points<object data=”img/love-at-first-bite.svg” type=”image/svg+xml” class=”chart”>
<a href="img/love-at-first-bite.svg">
<img src="img/love-at-first-bite.gif" alt="Love at First Bite">
</a>
</object>
enriquedealba
4,678 Points<object data=”img/love-at-first-bite.svg” type=”image/svg+xml” class=”chart”>
<a href="img/love-at-first-bite.svg">
<img src="img/love-at-first-bite.gif" alt="Love at First Bite">
</a>
</object>
Jason Tadlock
14,748 PointsYou need to remove the img tag and use only the object.