Embed YouTube Video in Webpage through HTML

How to embed YouTube videos in your webpage via HTML?
Last updated:7/20/2021 1:00:30 AM

1 Answers

Ethan Karla
Ethan Karla

If you want to add a YouTube Video on your webpage. It's very easy to embed it on your web page.

Here are the following simple steps you have to do :

Step 1.) Upload video to YouTube and note the video id (or you can copy from the video link the last code v=#sample_id is the id of the video)

Step 2.) Copy the below and paste it on your HTML file.

<!DOCTYPE html>

<html lang='en' xmlns='http://www.w3.org/1999/xhtml'>
    <meta charset='utf-8' />
    <title>Link Tags</title>

Step 3.) Run your HTML and you will be able to see the YouTube video played on your HTML file.

Hurrah! You've successfully embedded a video on your HTML file.

Happy Coding!