Should I use <EMBED> for Flash?

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
ajtruckle
Rank II - Novice
Posts: 47
Joined: Sat Feb 27, 2010 1:24 pm

Should I use <EMBED> for Flash?

Post by ajtruckle »

Hello

I added some flash using <OBJECT> and had an <EMBED> inside it. But that showed as an issue. Should one use <embed> or not?

Andrew
User avatar
CaryD
Rank II - Novice
Posts: 46
Joined: Sun Oct 01, 2006 2:18 pm
Location: CA

Re: Should I use <EMBED> for Flash?

Post by CaryD »

Go ahead and use it. There are other ways to code the object so you don't need embed, but it works. You can search the web for alternatives to using embed with flash, if you really don't want it there.
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Should I use <EMBED> for Flash?

Post by Albert Wiersch »

Hi Andrew,

The "embed" element is in HTML5 (but not previous versions of HTML):
http://dev.w3.org/html5/markup/spec.html#embed

Most likely OK to use it... but it should be empty (no end tag) according to HTML5.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial