If you use the default code given by youtube to embed a video, you will notice that it failed to pass xHTML validation. This is because <embed> was deprecated in favor of the <object></object> element.
This is the codes given by youtube:
<object width="425" height="344"> <param name="movie" value="http://www.youtube.com/v/VEL5ABddZ0k&hl=en_US&fs=1&"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/VEL5ABddZ0k&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed> </object> |
After some changes, it is now xHTML validated codes:
<object type="application/x-shockwave-flash" width="425" height="344" data="http://www.youtube.com/v/VEL5ABddZ0k&hl=en_US&fs=1"> <param name="movie" value="http://www.youtube.com/v/VEL5ABddZ0k&hl=en_US&fs=1" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> </object> |
What has changed:
There are some built-in parameters that you can add to change the behaviour/style of embedded video.
Disable Related Videos
I don’t like to see related videos when I mouseover the video container. You can add &rel=0 to the two video urls in the code. Based on the xHTML validated codes above, now it would look like:
<object type="application/x-shockwave-flash" width="425" height="344" data="http://www.youtube.com/v/VEL5ABddZ0k&hl=en_US&fs=1&rel=0"> <param name="movie" value="http://www.youtube.com/v/VEL5ABddZ0k&hl=en_US&fs=1&rel=0" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> </object> |
Disable Search
To disable the search box from displaying when the video is minimized, add &showsearch=0 to the two URLs
Auto Play
By default, auto play is off. To enable it, add &autoplay=1 to the two URLs
Custom Start Time
You can change the start time of the video, thus embeding only part of a video.
For example, if you want the video to start from 30th second, add &start=30 to the two URLs
More
There are more options you can change, such as:
For the full list and info, please refer to this page.

very helpful post
thanks this help out a lot
Thank you for taking the time to post this information it sorted the problem out for me no problems now :-)
Thanks for posting this i have been looking all over the net for a solution, perfect thanks
i really need this,,thanks for the youtube tutorial
thanks. info is much appreciated