How do you embed a video into a website?

To start, make sure you have a working text editor for a webpage open, as well as the file you'd like to embed, and any style pages linked into your website already. Embedding videos isn't simple, so take your time to make sure everything is prepared and working on your website before adding another complex element.

Embedding Through YouTube

If you're going to have your video hosted by a different platform such as vimeo or youtube, upload your video to youtube if it is not already there, listed under private if you don't want people to see it. and when it fully uploads click on the share icon below it.

Next, you'll see a list of different icons will pop up, indicating how you'd like to share the video. You'll click on embed.

After you click on the "Embed" icon, you'll see a pre-written code already copied next to your video, if you'd like the video to start at a certain point you can adjust where it starts from the box below. Click on copy, and paste your code into the body section of your text editor to embed the video into your site.

Step 3

Once your code is pasted into your document it will show up into your page, you can adjust the height, width, and anything else needed. Everything you need for the video should already be there working for you, you can add divs, margins, borders, and any other styling properties to snazz up your webpage with your video!

Here we have our video used shown embedded below into our site!