How to Make a YouTube Video Embed and Align to the Center

By Allen Bethea

Upload your videos to YouTube rather that waste space and bandwidth on your own Web server.
i James Woodson/Digital Vision/Getty Images

While YouTube provides you with the code you need to share a video for free, they don't help with the process of laying it out on your website or blog. Fortunately, YouTube's video embed code is just an ordinary HTML iframe. If you encapsulate this

Step 5

Select all the code in your text editor, copy it, and paste it into the blog post or Web page you want it to display within.

×