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
Bryan Heredia
7,777 PointsFlexible Images Part One : Vector Graphics
Hey guys, can you please help me out with the following code. It states that I have to Swap out <img src=”img/love-at-first-bite.gif alt=”Love at First Bite”> tag with the correct HTML markup to instead bring in an love-at-first-bite.svg, located in the same “img” folder.
And I wrote the following code
<object data="img/love-at-first-bite.svg" type="img/svg+xml" class="chart">
<a href="img/love-at-first-bite.svg">
<!--[if lte IE 8]-->
<img src="img/love-at-first-bite.svg" alt="Love At First Bite">
<!--[endif]-->
</a>
<object>
Can you guys help and tell me what is wrong ?
1 Answer
Colin Marshall
32,861 PointsRight off the bat I see you didn't close the object tag correctly. You forgot the forward slash.
Bryan Heredia
7,777 PointsBryan Heredia
7,777 PointsAh, It's actually well written in the code editor but I must have made this error here. Any other suggestions on why this code might not be working ?
Colin Marshall
32,861 PointsColin Marshall
32,861 PointsYou have type="img/svg+xml" and it should be image not img.
Bryan Heredia
7,777 PointsBryan Heredia
7,777 PointsYou're awesome! thank you very much!