Valid YouTube Embedding

I use embedded YouTube, not only in this Blog, but on other sites as well. Recently this has been coming back to bite me as the code that YouTube supply for embedding is not, erm, valid. Or rather it doesn’t validate according to W3C rules.

Which means my sites have started falling foul of various on-line checkers which once were happy to say I had good sites.

Anyway, a touch of Googling and I found my answer – a piece of code that will not break validation. Hooyah. If you embed YouTube videos then this is recommended. Oh, and it apparently works with Google Video as well.

Meantime, YouTube have granted me a Directors account (cue diabolical laughter).

Posted by David Artiss

Enterprise Happiness Engineer for the WordPress VIP team at Automattic. Gamer, film lover and general fan of all things Marvel, Star Trek and Star Wars. Failed comedian. Writer for The Big Tech Question. World's Greatest Grandma.

Talk to me!

This site uses Akismet to reduce spam. Learn how your comment data is processed.