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 HTML Objects Embedded Elements

<object> vs <embed>

I am wondering if versions of IE 10+ still have the non standard implementation of the <object> tag that force the use of the <embed> tag. I read something about the chrome browser supporting new features for objects but I didn't fully understand it.

Is there going to be a shift away from <embed> to <object>? Has that already happened?

2 Answers

The object tag has a number of advantages, the most important being the ability to add fallback content. From what I can see, the only reason you would use embed is to support older browsers, (IE6 and earlier).

Justin Hunter
PLUS
Justin Hunter
Courses Plus Student 11,484 Points

I think this might help answer your question: http://www.w3schools.com/html/html_object.asp

Both work in all major browsers though as long as your document is an HTML5 document.