By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,718 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,718 IT Pros & Developers. It's quick & easy.

Embed tag not supported

P: 49
Hello everybody,

I have to validate a site. Doctype for our site isxhtml1.0
. As xhtml 1.0 does not support embed tag, on validation it throws an undefined "embed" element error . So how could I resolve it .
Please help me out in this regard. As soon as possibly. I need to fix it urgently.

Thanks
Apr 5 '11 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
You can't. There is no such thing as embed. You should use 'object' instead.
Apr 5 '11 #2

P: 49
I agree with you that there is no embed tag in html 4.0 and xhtml 1.0 , but even though we need to use embed tag for better browser compatibility, some older version browsers does not support object element thats why I am asking for some alternative. I have to use both embed and object element for browser compatibility moreover I need that document to be valid as well .
Apr 6 '11 #3

drhowarddrfine
Expert 5K+
P: 7,435
The only browser that had problems with the object tag is IE, as always is the case, but I don't recall what those are. So it's not a "cross compatibility" issue, it's an IE issue.

Whenever anyone talks about "cross compatibility" they mean "it doesn't work in IE".
Apr 6 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.