

Adding ‘autoplay=1’ to the embed code will make the video play automatically. You can make an embedded video start to play automatically on your webpage by using the autoplay parameter. ‘loop=1’ means the video will loop, whereas ‘loop=0’ means the video will only play once, which is also the default mode.

If you want to play your video on loop forever, you have to use the loop parameter. Add ‘modestbranding=1’ to the iframe code to remove branding. In this case, you can hide the logo and branded play button present in Youtube videos. The modestbranding parameter is responsible for showing any type of branding. ‘controls=1’ means player controls display 2. ‘controls=0’ means player controls do not display YouTube Controls Parameterīy using the YouTube controls parameter, you can either hide the controls at the bottom of the video or let it stay. Here we gathered some useful parameters you might want to make use of. You can still add some more features if you tinker a little bit with the embed code by adding additional parameters. YouTube offers some options to customize the video playing experience. So, for example, if you want your video to be under the title “How to Embed Tutorial,” your code will look something like this: Everything you have displayed on the page is also written in the code.

YouTube also allows you to customize your video by giving you the option to start it from the point you want.Here you can adjust the dimensions of the video by setting the width and height.Next, click on the “Embed” option, which will appear under “Share a Link.” This will open a screen with the YouTube video embed code, which is also called an iframe code.Click on the “Share” button located under the video to open the sharing options.Open the YouTube page and find the video you want to embed.
HOW TO CENTER AN EMBEDDED VIDEO IN HTML HOW TO
How to Insert a Video in HTML Using the Embed Code?įollow these steps to embed videos in your webpage:
