April 22
Once again today I have used it, I'll tell me, how you can build XHTML valid Youtube videos.
Since Youtube is still working with an inserted video embed can produce with the standard "embed" code already 7 or more errors in the XHTML validity.
For someone who puts out value (like me), there is almost a disaster ![]()
Let's look at the development of a standard embed code from youtube to repeat:
1 2 3 4 5 6 | <object width="480" height="295"> <param name="movie" value="http://www.youtube.com/v/lQ3D4CqHbJM&hl=de&fs=1&color1=0x006699&color2=0x54abd6"> </ param> <param name="allowFullScreen" value="true"> </ param> <param name="allowscriptaccess" value="always"> </ param> <Embed src = "http://www.youtube.com/v/lQ3D4CqHbJM&hl=de&fs=1&color1=0x006699&color2=0x54abd6" type = "application / x-shockwave-flash" allowscriptaccess = "always allowfullscreen =" true "width = "480" height = "295"> </ embed> </ Object> |
A lot of stuff, everything not valid according to today's standards.
Videos Here are the important characteristics of again at a glance:
&hl=de&fs=1&color1=0x006699&color2=0x54abd6 Let us now with the XHTML Transitional valid code:
1 2 3 | <object type="application/x-shockwave-flash" width="425" height="261" data="http://www.youtube.com/v/lQ3D4CqHbJM"> <param name="movie" value="http://www.youtube.com/v/lQ3D4CqHbJM&hl=de&fs=1&color1=0x006699&color2=0x54abd6&fmt=18" /> </ Object> |
What has changed?:
How do you build a Youtube video now so hurry valid one?
1st You copied the standard embed code from the Youtube VideoID and the parameters out, thus: lQ3D4CqHbJM&hl=de&fs=1&color1=0x006699&color2=0x54abd6
2nd Take you the valid code from me and replaced my VideoID and parameters with yours.
3rd Looking at this code after all the "&" and adds more "amp;" back on, until no "&" remain.
Done!
So, by that I post trade course, many errors in the code, but that's the price of education ![]()
Did you enjoy this post? Then look yet at the "Similar Articles" and to subscribe to my RSS feed .
2 Responses for "Installing Youtube valid XHTML"
So I feel that too much effort was and set up a plugin that does this automatically. But for blogs, the only insert from un to time a video is the Ok!
Thank you for the tip, was simple to implement. Now I only have the problem that the video is not getting under the Navileiste. Since I will probably look for a bit.
Leave a reply