I recently saw the YouTube switched to an iFrame for their embed code rahter than using the <object> tag. I began to wonder why they did this. At first I didn’t like using the iFrame tag because when using WordPress, you have to paste the tag in the HTML view and if you toggle back to the Visual tab, you will lose the HTML iFrame code that you pasted.
It turns out the reason for the change has to do with HTML5. By using an iFrame, the YouTube video will be able to detect whether your browser supports HTML5 and if it does, the HTML5 version of the video will play rather than the Flash version.
The whole reason for this was so videos can …
Continue Reading »