Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embed tag problems 1

Status
Not open for further replies.

Dweezel

Technical User
Feb 12, 2004
428
GB
I have the following embed tag in a web page:
Code:
 <embed src="[URL unfurl="true"]http://www.mysite.co.uk/inc6.swf"[/URL] quality="high" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] type="application/x-shockwave-flash" width="500" height="150"></embed>

This code produces the following errors when I test it's validation:
Error Line 178 column 40: there is no attribute "SRC".
<embed src=" qua
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.

?

Error Line 178 column 85: there is no attribute "QUALITY".
... quality="high" pluginspage="?

Error Line 178 column 104: there is no attribute "PLUGINSPAGE".
...ain2.swf" quality="high" pluginspage="?

Error Line 178 column 155: there is no attribute "TYPE".
...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="5
?

Error Line 178 column 193: there is no attribute "WIDTH".
...application/x-shockwave-flash" width="552" height="175"></embed>
?

Error Line 178 column 206: there is no attribute "HEIGHT".
...-shockwave-flash" width="552" height="175"></embed>
?

Error Line 178 column 211: element "EMBED" undefined.
...kwave-flash" width="552" height="175"></embed>
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),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.
I'm using a html 4 transitional doctype. Can anyone advise me on what is the best way to embed Flash into a web page that will validate and be viewable in all major browsers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top