• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

Validation (w3.org) question ..

I have used the following code to embed a flash movie into my document:


--------------------------
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="440" height="140">
  <param name="movie" value="images/movie.swf">
  <param name="quality" value="high">
  <embed src="images/movie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="440" height="140"></embed></object>
--------------------------

But it is causing 7 errors when validating.
These are as follows:

Line 24, column 13: there is no attribute "SRC"

<embed src="images/movie.swf" quality="high" pluginspage="http://www.macromedi

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

&#9993;

Line 24, column 40: there is no attribute "QUALITY"

<embed src="images/movie.swf" quality="high" pluginspage="http://www.macromedi

&#9993;

Line 24, column 59: there is no attribute "PLUGINSPAGE"

...ovie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashpl

&#9993;

Line 24, column 110: there is no attribute "TYPE"

...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="4

&#9993;

Line 24, column 148: there is no attribute "WIDTH"

...application/x-shockwave-flash" width="440" height="140"></embed></object>

&#9993;

Line 24, column 161: there is no attribute "HEIGHT"

...-shockwave-flash" width="440" height="140"></embed></object>

&#9993;

Line 24, column 166: element "EMBED" undefined

...kwave-flash" width="440" height="140"></embed></object>

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), or by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
---------------------

Can any-one clarify the CORRECT way to embed this document exactly how I have it ???
THanks FoR Ur TiMe ..
0
Eternal_Student
Asked:
Eternal_Student
1 Solution
 
RoonaanCommented:
http://webdesign.about.com/library/tags/bltags-embed.htm as to note about it being depricated
http://www.ambience.sk/flash-valid.htm as to see how its implemented validly.

Regards

-r-
0
 
Eternal_StudentAuthor Commented:
EXCELLENT .. so I changed it to this

----------------
<object type="application/x-shockwave-flash" data="images/movie.swf" width="440" height="140">
<param name="movie" value="images/movie.swf">
</object>
---------------
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now