Horje
HTML YouTube Video Id

YouTube will display an id (like tgbNymZ7vqY), when you save (or play) a video.

You can use this id, and refer to your video in the HTML code.


Example to go a Youtube Video by Link using id

https://www.youtube.com/watch?v=MJ49xD7yXT4

Example of adding HTML Video using id to your HTML Page

<iframe width="400" height="230" src="https://www.youtube.com/embed/lJIrF4YjHfQ" title="Embed videos and playlists" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Output should be:

Example of adding HTML Video using id to your HTML Page





Category:
Web Tutorial
Sub Category:
HTML YouTube Videos
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference