Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

YouTube Autoplay + Mute

You can enable your video to start playing automatically when a user visits the page by adding autoplay=1 to the YouTube URL.

However, note that automatically starting a video can be intrusive for your visitors.

Note that in Chromium browsers, autoplay is generally restricted. However, muted autoplay is consistently permitted.

To allow your video to start playing automatically (but muted), add mute=1 after autoplay=1 in the YouTube URL.

YouTube – Autoplay + Muted

<iframe width=”420″ height=”315″
src=”https://www.youtube.com/embed/tgbNymZ7vqY?autoplay=1&mute=1″
>

</iframe>

YouTube Playlist

A comma-separated list of additional videos to play alongside the original URL.

YouTube Loop

To enable your video to loop indefinitely, add loop=1 to the YouTube URL.

  • Value 0 (default): The video plays only once.
  • Value 1: The video loops indefinitely.

YouTube – Loop

<iframe width=”420″ height=”315″
src=”https://www.youtube.com/embed/tgbNymZ7vqY?playlist=tgbNymZ7vqY&loop=1″
>

</iframe>

YouTube Controls

To hide controls in the video player, add controls=0 to the YouTube URL.

  • Value 0: Player controls are not displayed.
  • Value 1 (default): Player controls are displayed.

YouTube – Controls

<iframe width=”420″ height=”315″
src=”https://www.youtube.com/embed/tgbNymZ7vqY?controls=0″
>

</iframe>