YouTube is the best platform to upload, share and embed your videos without any cost. Undoubtedly, YouTube is the largest video streaming portal where anyone can share small to big size videos shelling out nothing.

YouTube seamlessly allows us to embed videos in website pages. To embed a YouTube video is a web page, simply copy the embed HTML code and add the copies code to webpage HTML.

Also read

How to clear YouTube search history

How to find out full length movies and TV shows available on YouTube

How to use YouTube offline stream feature

But by default, YouTube embed code doesn’t include autoplay option, player styling options, video loop options and some other options. All these options can be added via some parameters provided separately for advanced users only.

Customizing YouTube Video

below is the example embed code for a YouTube video;

<iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/gsjtg7m1MMM?rel=0″ frameborder=”0″ allowfullscreen>

Then we have to make changes in this code adding custom parameters

How to enable autoplay for embed video

Add the parameter autoplay with value 1 as shown below

<iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/gsjtg7m1MMM?autoplay=1” frameborder=”0″ allowfullscreen>iframe>

How to remove YouTube logo from the video player

It is called modest branding if you remove YouTube logo from embedded video

Add the parameter modestbranding with value 1 as shown below

<iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/gsjtg7m1MMM?modestbranding=1” frameborder=”0″ allowfullscreen></iframe>

How to add both auto-play and modest branding

<iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/gsjtg7m1MMM?modestbranding=1&autoplay=1” frameborder=”0″ allowfullscreen></iframe>

How to loop embedded video

Add the parameter loop to enable video looping

<iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/gsjtg7m1MMM?loop=1” frameborder=”0″ allowfullscreen></iframe>


Here is the list of all available parameters to customize your embedded YouTube video