Add Youtube videos to the Website or Blog

  • Post author:
  • Post category:HTML
  • Post comments:0 Comments

Add Youtube Video

Sometimes we have to add a video from a YouTube channel or YouTube to our website or blog, so let’s see how we can add YouTube videos.

Here is the sample code

<!DOCTYPE html>
<html>
<head>
<title> adding video in website </title>
</head>
<body>

##get your youtube video url from your channel
<iframe width="400" width="300" src="youtube-video-url"><iframe>
<h1>
Thanks For Reading
</h1>
</body>
</html>

Auto Play and Mute

<!DOCTYPE html>
<html>
<head>
<title> adding video in website </title>
</head>
<body>

##get your youtube video url from your channel
<iframe width="400" width="300" src="youtube-video-url?mute=1&autoplay=1"><iframe>
<h1>
Thanks For Reading
</h1>
</body>
</html>

Leave a Reply