+ 2

How do I Add Youtube Videos In Html5?

Copying youtube link doesn't work for me.

15th Jul 2017, 5:15 PM
Shehzad
Shehzad - avatar
4 Respuestas
+ 13
This is the correct way to add an ".mp4" video and similar but to embed a youtube video you can simply use an <iframe> In this case the code will be: <iframe src="https://www.youtube.com/embed/o8kT5c_4PAc"></iframe>
15th Jul 2017, 5:21 PM
Maz
Maz - avatar
+ 4
Youtube videos won't work that way. They need to be added in a special way. Right click on the video, select 'Copy embed code'. Paste it where you want. I've modified your code. https://code.sololearn.com/Wgkq06uLy6q7
15th Jul 2017, 5:22 PM
Salekin
Salekin - avatar
+ 4
This link should help you to correctly integrate youtube video: https://www.w3schools.com/html/html_youtube.asp
15th Jul 2017, 5:24 PM
visph
visph - avatar
0
Thank you Guys!
15th Jul 2017, 5:25 PM
Shehzad
Shehzad - avatar