How to Embed a YouTube Video in HTML

  1. Click Share and Embed on the YouTube video, then copy the code.

  2. Paste this code into the body of your HTML.

  3. Put the embedded video into a div and set the size of the video to 100%.