Embed YouTube Video In Website

How to Embed a YouTube Video In Website

How to Embed a YouTube Video In Website

Find the YouTube video you'd like to embed.
Under the video, choose "Share."
In the menu that appears, choose "Embed."
Copy the code that appears and paste into your website's HTML editor.
 
1. Find the YouTube video you'd like to embed.
Embedding a YouTube video onto your blog or website is incredibly easy. To start, open YouTube and navigate to the video you want to embed. For this example, we'll embed a video about Create HTML Sitemap Page For Blogger “Owners Solutions” YouTube channel -- as shown in the screenshots below.
 
2. Under the video, choose "Share."
Beneath the video itself, look for the "Share" button, as shown below.
 
How to Embed a YouTube Video In Website

3. In the menu that appears, choose "Embed."
Clicking the "Share" button below your chosen YouTube video will open a small menu of options where you can share the video to various social networks. To the far left of these options, however, you'll also see a circular "Embed" button. Click this button.
 
How to Embed a YouTube Video In Website

3. Copy the code that appears and paste it into your website's HTML editor.
The next window to appear will produce a large of box of coded text, as well as a few options to customize your video before you embed it. Under the embed code, for instance, you can set whether you want your video to start at a particular timestamp.
 
Once you have your settings exactly the way you want them, highlight the coded text at the top of the window. Then, click "Copy" on the bottom-right.

4. Add <center> and </center> tags around the entire HTML snippet to center-align your video.
Here's what the final code should look like:

<iframe width="560" height="315" src="https://www.youtube.com/embed/AjR4VUe8nLc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> {codeBox}

Conclusion: Done what you want.

How to Embed a YouTube Video In Website

Post a Comment

Previous Post Next Post