html youtube embed code example

Example 1: how to add a youtube video in html

<!-- 1. Find a YouTube video and copy the embedded code
	 2. Set width and height -->
<iframe width="420" height="345" 
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>

Example 2: html inbed youtube

Search up "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
#real code
<body>
<iframe width="420" height="345" 
src="https://www.youtube.com/watch?v=dQw4w9WgXcQ">
</iframe>
</body>

Example 3: embed youtube channel in html

<iframe src="http://www.youtube.com/embed/?listType=user_uploads&list=YOURCHANNELNAME" width="480" height="400"></iframe>