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

by Allen Bethea

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

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.

Warning

References

About the Author

Allen Bethea has written articles on programming, web design,operating systems and computer hardware since 2002. He holds a Bachelor of Science from UNC-Chapel Hill and AAS degrees in office technology, mechanical engineering/drafting and internet technology. Allen has extensive experience with desktop and system software for both Windows and Linux operating systems.

Photo Credits