Link to home
Create AccountLog in
Avatar of ncw
ncw

asked on

WC3 compliant html for embedding flash

How can I modify the following html to make it WC3 compliant:

<embed src="img/something.swf" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Testing at http://validator.w3.org it says "This page is not Valid HTML 4.01 Transitional!" and it says there's no attributes for src, quality, type, pluginspace, and element "EMBED" undefined.


Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

ncw,

The problem may be the way you are closing the tag.  "/>" is used to close XHTML tags that don't have closing tags.  Embed does have a closing tag and you should use it in HTML or XHTML.

<embed src="img/something.swf" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>

This may fix the validation error.  The rest of that code looks OK to me.

b0lsc0tt
Avatar of ncw
ncw

ASKER

No difference.

<embed src="img/something.swf" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of ncw

ASKER

The full object code was:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="658" height="237" id="something" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="img/something.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="img/something.swf" quality="high" bgcolor="#ffffff" width="658" height="237" name="something" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

which I think matches the 'twice cooked' method in the links.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Oops, sorry about that problem with the link in my comment above. I'm new to posting here. My error.
Hi uhh-ohhh

To make a link you just type it out, no code:
http://www.domain.com

-Sam
ncw,

We have not heard you in a while.  Did any of the comments answer your question?  If so, please accept the appropriate comment with an excellent or good grade.  If you still have a question or need additional information then please let us know so that we can help you resolve the problem.

b
Avatar of ncw

ASKER

Thank you.