Jump to content

YouTube on XHTML


kennith

Recommended Posts

I have narrowed the coding down from 41 Errors, 25 warning(s) to 5 errors. I don't know how to correct the rest of them.

 <embed src="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" 		  type="application/x-shockwave-flash" width="240" height="200"></embed></object>

Link to comment
Share on other sites

1. Error element X undefined ✉ 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). * Line 65, column 72: element "embed" undefined …type="application/x-shockwave-flash" width="240" height="200"></embed></object> 2. Error there is no attribute X ✉ 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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. * Line 64, column 18: there is no attribute "src" <embed src="

* Line 65, column 16: there is no attribute "type" type="application/x-shockwave-flash" width="240" height="200"></embed… * Line 65, column 54: there is no attribute "width" …type="application/x-shockwave-flash" width="240" height="200"></embed></object> * Line 65, column 67: there is no attribute "height" …type="application/x-shockwave-flash" width="240" height="200"></embed></object>
Link to comment
Share on other sites

1. Error element X undefined ✉ 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). * Line 65, column 72: element "embed" undefined …type="application/x-shockwave-flash" width="240" height="200"></embed></object> 2. Error there is no attribute X ✉ 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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. * Line 64, column 18: there is no attribute "src" <embed src="
* Line 65, column 16: there is no attribute "type" type="application/x-shockwave-flash" width="240" height="200"></embed… * Line 65, column 54: there is no attribute "width" …type="application/x-shockwave-flash" width="240" height="200"></embed></object> * Line 65, column 67: there is no attribute "height" …type="application/x-shockwave-flash" width="240" height="200"></embed></object>
What document type are you using?dink
Link to comment
Share on other sites

Guest FirefoxRocks

You can't use the <embed> element in XHTML, or any version of HTML below 5.Try using the Flash Satay method to put Flash objects (e.g. YouTube videos) into your web page. It works in Internet Explorer, Gecko-based (Firefox/Flock) and Webkit-based browsers (e.g. Chrome, Safari).

Link to comment
Share on other sites

You can't use the <embed> element in XHTML, or any version of HTML below 5.Try using the Flash Satay method to put Flash objects (e.g. YouTube videos) into your web page. It works in Internet Explorer, Gecko-based (Firefox/Flock) and Webkit-based browsers (e.g. Chrome, Safari).
Passed! Thank you.
Link to comment
Share on other sites

Okay, so this is my code.

	  <object type="application/x-shockwave-flash" 		data="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999" width="240" height="200">	  <param name="movie" value="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999" /> </object>

The way it was set up before, there was a border. The border is not being read now. Any idea on how to fix this.

Link to comment
Share on other sites

Guest FirefoxRocks

Check the URL in your data and value attributes. I see that you forgot the border variable in the URL you copied from YouTube.

Link to comment
Share on other sites

Check the URL in your data and value attributes. I see that you forgot the border variable in the URL you copied from YouTube.
I thought color1=0x3a3a3a&color2=0x999999 was the border. It works when I add the style, as ling as it is in with the data. The problem is I can't make it the same as YouTube with two colors. I guess that will work until I can buy a flash player. The free ones are too limited. Thank you for everything.
Link to comment
Share on other sites

&border=1
That didn't do anything. I will just settle for what I have now.
	  <object type="application/x-shockwave-flash"  style="border:4px ridge #999999;"		data="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999" width="240" height="200">	  <param name="movie" value="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999" /> </object>

...works for me.

Link to comment
Share on other sites

One last try?Copy&paste - for your convinience:

	  <object type="application/x-shockwave-flash"		data="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" width="240" height="200">	  <param name="movie" value="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" /> </object>

Link to comment
Share on other sites

One last try?Copy&paste - for your convinience:
	  <object type="application/x-shockwave-flash"		data="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" width="240" height="200">	  <param name="movie" value="http://www.youtube.com/v/UIyE1xx4bDM&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" /> </object>

Sweet, thank you.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...