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?