This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The easiest way to play videos in HTML, is to use YouTube.
To play your video on a web page, do the following:
<iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY"> </iframe>
You can let your video start playing automatically when a user visits the page, by adding
to the YouTube URL.Note: Automatically starting a video can annoy your visitor and end up causing more harm than good!
<iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY?autoplay=1&mute=1" > </iframe>
A comma separated list of videos to play (in addition to the original URL).
N.B. to embed a YouTube playlist, watch the video in the list you want to be first in the list and while playing the video, right click on the video and choose "embed video". Paste the resulting code in the HTML page where you want the <iframe> containing the code to appear.
To make the embedded videos mobile compatible, use
to set the attribute of the video to 100% (the full width of the device display) and the attribute to the actual height of the video. The embedded video will scale down to the size of the device width or scale up to the size of the browser window on a large computer screen.<iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY?playlist=tgbNymZ7vqY&loop=1"> </iframe>
<iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY?controls=0"> </iframe>