How to embed YouTube videos in a html5 page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to embed YouTube videos in a html5 page?

Help me

13th Apr 2017, 10:36 AM
Supersebi3
Supersebi3 - avatar
3 Answers
+ 6
I've pasted the code for it below. If you go onto the YouTube video you want to embed and press "share" (above the description) 3 tabs will appear and the middle one says "embed" if you click that it will give you the embed code for the video :) You can place this code directly into your HTML and it should appear on your webpage. <iframe width="560" height="315" src="https://www.youtube.com/embed/NmCCQxVBfyM?ecver=1" frameborder="0" allowfullscreen></iframe>
13th Apr 2017, 10:52 AM
Jason Merrett
Jason Merrett - avatar
+ 5
ok
13th Apr 2017, 10:48 AM
Supersebi3
Supersebi3 - avatar
+ 4
Do this : <iframe width="420" height="315" src="https://www.youtube.com/video"> </iframe>
13th Apr 2017, 10:48 AM
Style Jr.
Style Jr. - avatar