Jump to content
xisto Community
Sign in to follow this  
Konstantine

Embed Tag Valid In Xhtml 1.0 Strict?

Recommended Posts

Yes, the embed tag is not accepted in xhtml strict. It has been replaced by the "object" tag. If you want to know the details, look here at the w3schools site.

 

A full html 4.01 and xhtml reference list is available on that site. I use it all the time. Bookmark it, please.

 

The way to have an object so that it works in both new and old Browsers is to use BOTH the object and the embed tags. There are all kinds of samples of this code around. find a site which has an object similar to the one you which to include in your page and do a "view > source" to learn how they have done it. A great learning method, by the way.

Share this post


Link to post
Share on other sites

Yes, the embed tag is not accepted in xhtml strict. It has been replaced by the "object" tag. If you want to know the details, look here at the w3schools site.
A full html 4.01 and xhtml reference list is available on that site. I use it all the time. Bookmark it, please.

The way to have an object so that it works in both new and old Browsers is to use BOTH the object and the embed tags. There are all kinds of samples of this code around. find a site which has an object similar to the one you which to include in your page and do a "view > source" to learn how they have done it. A great learning method, by the way.

All this is OK.
The reason is for making a more standard XHTML code and readable to everyone, I mean, people, browsers, cell phones, palms, pockets, and of course, search engines.
EMBED tag was an "invention" to "embed" ActiveX controls that were only used and displayed properly by IE or Windows based web browsers, and it was/is an opened door to viruses.
OBJECT is more useful and readable because allows to nest more OBJECT tags and even other tags like P, IMG, etc, that will be displayed if parent node cannot be.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.