HTML iframe | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

HTML iframe

I’m trying to add a YouTube video to a html file using iframe as I’ve seen on w3school but I get a error, could I get some help. Thanks in advance.

4th Nov 2019, 6:03 PM
farhan bhatti
farhan bhatti - avatar
3 Answers
+ 5
Check this code. Here you can get how to use iframe for YouTube videos
4th Nov 2019, 7:11 PM
A͢J - avatar
+ 2
farhan bhatti For the embed link, you have to use desktop view of YouTube in a browser to get the embed link.
5th Nov 2019, 6:56 AM
Gordon - avatar
+ 1
A J thanks for your help, think i need to embed the video correctly so it can display on the page
4th Nov 2019, 7:51 PM
farhan bhatti
farhan bhatti - avatar