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 Build a Responsive Website Responsive Design Vector Graphics (SVG)

Alex Gustafson
Alex Gustafson
14,207 Points

Defining data and type when using the object tag

I eventually realized I wasn't passing this challenge because I was expected to define not only the 'data' attribute, but also the 'type' attribute. It took me a while to attempt that though because W3Schools said one of those two MUST be defined -- (see here: http://www.w3schools.com/TAGS/tag_object.asp) -- Is it more correct to say both attributes must ALWAYS be defined, or is that only the case because of something to do with SVG objects?

1 Answer

Richmond Lauman
Richmond Lauman
28,793 Points

I would say that the type attribute is needed in this instance because you are using an SVG file, and there are probably other MIME tyoes that would need to be specified in an object as well., in order to work properly.