Embed is not in the HTML spec 3.2 or 4.0

K

kenneth02394832

maybe i haven't asked before...

embed is not really an official HTML 3.2 or 4.0 element...

and it doesn't have a close tag </embed> isn't that true?

on the other hand, <iframe> always requires a matching closing tag </
iframe> or else it will be taken as things to display when iframe is
not supported.

is there a spec for the embed tag?
 
G

Gus Richter

kenneth02394832 said:
maybe i haven't asked before...

embed is not really an official HTML 3.2 or 4.0 element...

That'a right, it was a Netscape proprietary tag and never adopted by
W3C, although I believe that all browsers actually do support it.
and it doesn't have a close tag </embed> isn't that true?

Although it does not require a closing tag, it's best to use it - I
always used it and in an example on Mozilla site, they use an embedded
"embed" with closing tags. In an example at MSDN, they use it without a
closing tag.
on the other hand, <iframe> always requires a matching closing tag </
iframe> or else it will be taken as things to display when iframe is
not supported.

Always requires a closing tag.
When used, a "Transitional/loose" doctype must be used whereby the
browsers are set in Quirky Mode (not really desirable).
The object element replaced it.
is there a spec for the embed tag?

Not that I'm aware of. How about searching, like:
<http://developer.mozilla.org/en/doc...s#Using_the_embed_Element_for_Plug-in_Display>
 
J

Jukka K. Korpela

Scripsit Gus Richter:
That'a right, it was a Netscape proprietary tag and never adopted by
W3C, although I believe that all browsers actually do support it.

For some values of "all", basically "all that I care of", for some
values of "I".

The way to offer alternate content for browsers that do not recognize
<embed> or have been configured not to perform embedding is
<noembed>...</noembed>
Typically you could put a link to the embedded content there. Actually,
such a link is what you should probably _start_ with, and only then ask
yourself whether embedding makes sense, for the browsing situations
where it might work.
Although it does not require a closing tag, it's best to use it

It looks rather pointless, but I don't see what harm it could do.

[About said:
When used, a "Transitional/loose" doctype must be used whereby the
browsers are set in Quirky Mode (not really desirable).

Nonsense. You can use a Strict doctype declaration, or a custom doctype,
or a Transitional doctype including a URL, if you want to stay out of
the broken mode. And it's called "Quirks Mode". Google for it.

If you use a Strict doctype on a page that isn't Strict, the only effect
is that if someone validates the page, he gets some error message(s).
Big deal. Should _you_ want to validate such a page, you can use the
"Doctype Override" in the W3C Validator.
Not that I'm aware of.

There is no _specification_. Vendors' descriptions are not
specifications.
 
E

Eric B. Bednarz

Jukka K. Korpela said:
You can use […] a custom
doctype […] if you want to
stay out of the broken mode.

For some values of “customâ€. ;-) Unfortunately

<!doctype html system>

triggers quirks mode in Firefox and Safari. Which is pretty dumb.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top