Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Responsive Website Responsive Design Vector Graphics (SVG)

Jamie Bradley
Jamie Bradley
7,148 Points

Not sure what I'm doing wrong :(

I've tried this challenge section several times now, and I just can't see what I'm missing.

<div class="grid_2 omega"> <object data="img/love-at-first-bite.svg" type="img/svg+xml" class="chart"> <a href="img/"love-at-first-bite.svg"> </div>

James Barnett
James Barnett
39,199 Points

It's hard for us to know what's causing the issue you are having if you don't show us your code. For some tips on how to do that, check out the tips for asking questions video located in the right hand sidebar.

Jamie Bradley
Jamie Bradley
7,148 Points

Aw, I'm sorry! I thought I had. So, it's the Stage 4 Responsive Design vector code challenge where you swap the svg for the gif. This is the code I wrote:

<div class="grid_2 omega">
          <object data="img/love-at-first-bite.svg" type="img/svg+xml" class="chart">
            <a href="img/love-at-first-bite.svg">
              <!--|If lte IE8|-->
              <img src="img/love-at-first-bite.gif" alt=""Smells Like Bakin">
                            <!--|end if|-->
                </div>
James Barnett
James Barnett
39,199 Points

I noticed The forum is having trouble formatting your code, I fixed it for you.

The forum uses markdown to correctly format code, check out this thread on how to type code in the forum for some examples.

1 Answer

Tyler van der Hoeven
Tyler van der Hoeven
11,863 Points

Not sure but I do notice a few things you could at least try.

  • You didn't close your <a> tag or <object> tag
  • Your img tag's alt attribute has an extra quote character and you should also close images with /> rather then just >