Forum Moderators: open

Message Too Old, No Replies

"embed" Not found in currently active versions.

Why does the embed tag not validate?

         

madmatt69

9:20 am on May 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone, I've got a flash file embedded on one of my pages, and the page validates completely with this one exception-

The tag name: "embed" Not found in currently active versions.

Is that correct? Seems very strange to me that the embed tag would not validate. Is there another tag which is used in xhtml for this? Or a different syntax?

Thanks for any help-
Matt..

Nick_W

10:09 am on May 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not certain but I think you may need to wrap it in CDATA as discussed here [webmasterworld.com ]

Nick

madmatt69

10:40 am on May 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the info, but it doesn't work!

I think the CDATA is used for scripts..I'm just trying to embed flash content, it's not within any kind of javascript or anything. Any other thoughts?

Nick_W

11:05 am on May 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Got it!
Use the <object> tag instead. As I've never done this I'm afraid I can't be of specific help but that's definately what you need.

Hope it helps...

Nick

tedster

11:09 am on May 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<embed> was deprecated in HTML 3.2 - pretty far back. The valid tag in current versions is <object>, but older browsers may not support it, leaving you with almost no where to turn if you want that backwards support.

So if you must stick with the <embed> tag AND validate, from what I've read (never done it) your recourse is including an ATTLIST declaration [xmlwriter.net] with the DTD, before the HTML tag.

Something like this --

<!DOCTYPE html .... [
<!ELEMENT embed EMPTY>
<!ATTLIST embed
src CDATA #IMPLIED >
]>
<html>...</html>

Nick - you beat me to it!

madmatt69

11:30 am on May 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the info guys - I still can't seem to get it to validate. I use both the object and the embed tag, in order to keep that backward support..But if the embed tag is the only error that comes up when validating, I can live with that :) It doesn't adversely affect the page, just found it very strange that it didn't validate.

I also read this article on the macromedia site -
[macromedia.com...]

It explains why the embed tag is used when inserting flash content.

Thanks again for all your help!