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.
Alex Gustafson14,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?
Richmond Lauman28,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.