HTML Youtube

  • <object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages.

Example:

  • <embed> element: It defines an embedded object within a HTML document.

Example:

EMBED YOUTUBE

To embed video in HTML document YOUTUBE is the best option thus, HTML5 has provided that option.

Syntax:

ATTRIBUTES

  • Autoplay: It allows user to automatically plays the video when the site is visited

Value 0 (default): No Autoplay

Value 1: Autoplay activated

Syntax:

  • Playlist: It enables the list of video’s to be played continuously by enabling.

Loop 0 (default): Video is played only once.

Loop 1: Videos will be in loop.

Syntax:

  • Controls: It allows user to view controls of the video like play/pause, volume etc.

Control 0: Player control does not display.

Control 1 (default): Player Controls display.

Syntax: