Which website? Youtube or just plain video files? For HTML5 (Recommended method), the embed code would be: <video> <source src="movie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <!-- MP4 - H.264+AAC --> <source src="movie.webm" type='video/webm; codecs="vp8, vorbis"' /> <!-- WebM - VP8+Vorbis --> Video tag not supported. Download the video <a href="movie.webm">here</a>. <!-- Fallback - alternatively embedding a <embed> here works? --> </video> Code (markup): Obviously you don't need to encode both formats - just delete the <source> tag of the specific file format you don't have. (See HTML5Rocks for more information) For HTML4.01, the embed code would be: <embed src="video.mp4"> Code (markup): For YouTube, the embed code would be: <iframe width="853" height="480" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe> Code (markup):
Normally sites will provide this code for you. Or are you trying to develop your own videos and enclosures on your own website, or something?
Yeah, I completely agree with the above points. Youtube generate embed link and then we can add them on our website.