Grow your CSS skills. Land your dream job.

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.

*May or may not contain any actual "CSS" or "Tricks".