HTML<iframe> Tag

Playing a YouTube Video in HTML

To play your video on a web page, do the following:

Example

Result

 

YouTube Controls

Add controls=0 to NOT display controls in the video player.

controls=0 – Player controls does not display.

controls=1 (default) – Player controls is displayed.

 

HTML <embed> Tag

Definition and Usage

The <embed> tag defines a container for an external resource, such as a web page, a picture, a media player, or a plug-in application.

Example

Result