Submitted by: Octavia Anghel(octaviaanghel@gmail.com)

Wednesday Oct 4th 2017 by Octavia Anghel
Article Image

Language: Web, Expertise: Intermediate - Learn how to add videos to your HTML pages via YouTube.

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"
Mobile Site | Full Site