[clue-tech] Embedded Content on a Web Page

Jed S. Baer thag at frii.com
Wed Jan 5 21:20:54 MST 2005


On Wed, 5 Jan 2005 21:36:27 -0600
Joseph A. Nagy, Jr. wrote:

> > Check your success with the <embed> tag
> > 
> > <embed src="file.pdf" width="750" height="400"
> > href="file.pdf"></embed>
> 
> 1) to close it it's <embed src="file.pdf" width="750" height="400"
> href="file.pdf"/> 2) It's deprecated and if he's contemplating the
> object tag I'm going to assume he's trying for XHTML 1.0 compliance,
> embed will show up as an error when he goes to validate.

I'd almost be OK with EMBED, except that I couldn't find any reference to
it being a W3C standard. Couldn't find it for HTML 3 or 4. So, even though
"most" browsers support it, it seems inadvisable. I really don't care much
for XHTML -- I mean c'mon, "<br />" ??? Yech.

But in looking for docs on EMBED, I've found as many variations as the
number of web pages purporting to document it I looked at. Some propose a
closing tag, others don't. I've seen examples where the corresponding
NOEMBED is within the EMBED ... /EMBED pair. Others where it isn't. My old
O'Reilly HTML (3.2) book shows no closing tag.

FWIW, EMBED does function in my testing. And perhaps, since it seems that
browsers try to support non-standard and deprecated tags, I should use it,
since it's more likely to be supported in older browsers than OBJECT.

While I'd like to be HTML 4.01 Transitional compliant, in practice, maybe
it's more kind to end users to go for what's most widely supported? If
only there were a way to know what that was.

jed
-- 
http://s88369986.onlinehome.us/freedomsight/
Key fingerprint = B027 FEFB 4281 CC72 67D1  4237 F2D0 D356 077A A30E
... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier



More information about the clue-tech mailing list