The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

object vs. embed tags and HTML5

  • # September 29, 2009 at 3:19 pm

    I’m confused over the exact differences between the <object> and <embed> tags, and which one I should use for, say, embedding a Flash movie on a page.

    First off, which is valid? I’ve read in multiple places that <object> is valid and <embed> is deprecated. But then I found on W3Schools that <embed> is a new tag in HTML5, yet it still supports <object>, although with certain attributes deprecated.

    So what’s the deal here? <embed> was deprecated, but now it’s new in HTML5 so <object> will be deprecated instead? Which one should I use right now, and which one should I use for the future?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed