Sunday, February 1, 2009

[Code] Embedding Youtube Videos Into Your Webpages and Blogs

Question
"Am I allowed to post a youtube video to my blog? How do I do it? It seems like it should be really simple."

Answer
Absolutely! The process is quick and painless as Youtube has done all the work for you!

It's actually REALLY easy to post a Youtube video into your blog. If you have read my other blog (which I know the asker has), you might remember me embedding a Youtube video in order to show a video of "White Lines" from the 80s.

If you find a video that you want to include on Youtube, you will find the embedding code already provided for you (which can be customized with the little star-like icon to the right of the text field). What you will do is click into the box that contains the text next to where it says "Embed" and copy that text (either right click and choose copy or use the keyboard shortcut of Ctrl+C). This is the code to embed the video into your own page.

Once you have this code copied to your clipboard, you can create a new blog post and bring up the WYSIWYG (what you see is what you get, pronounced "wiz-e-wig") editor. One of the tabs at the top right of the editor is "Compose" and the other is "Edit Html." Clicking on the "Edit Html" will show you the html markup for the blog post, where you can paste the code you have copied to your clipboard (either right click and select Paste or press Ctrl+V).

Once you see the block of code added to the html, you can then click back on the "Compose" tab and you'll see the video has been embedded into your blog. You can then edit your blog as desired and publish.

See? Quick, easy and painless. :)

Embed away and take care!
B

No comments:

Post a Comment