Loading a Youtube Video in an HTML Page

You can convert videos in different formats to view them in your browser. An easier way to play video in HTML format is to use YouTube.

YouTube generates an automated id that must be inserted into the HTML code. Load the video, define with the element and the height and width attributes:

Src = "https://www.youtube.com/embed/ PVjcIO4MT4"


You can play the video automatically when the user accesses your web page by adding a parameter to the YouTube URL:

Src = "https://www.youtube.com/embed/ PVjcIO4MT4? Autoplay = 1"
Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: