Plz help i can not add video in html ? I used <iframe width="425" height="344" src="" frameborder="0" allowfullscreen></iframe> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Plz help i can not add video in html ? I used <iframe width="425" height="344" src="" frameborder="0" allowfullscreen></iframe>

I used link form you tube app (shere- copy clipboard) but didn't worked plz help after link entered some massage given in output red sentence say refused display "https://m.youtube.com/watch?=1taggdfcbpu&feature="youtu.be"in a frame because it set "x- frame- options"to sameorigin . line:1 plz help gayz how to fix

16th Oct 2017, 9:03 AM
kalpesh Dharpure
kalpesh Dharpure - avatar
3 Answers
+ 5
You probably need to use the YouTube embed url in following format:- https://www.youtube.com/embed/{your video id} In this case, the id is 1taggdfcbpu. Try it and let us know whether it works. 😉
16th Oct 2017, 9:19 AM
Zephyr Koo
Zephyr Koo - avatar
+ 1
Your Line of code is trying to embed the whole YouTube website, rather then the video only. try this link in the src ; http://www.youtube.com/embed/1taggdfcbpu Embeddings whole website is restricted.
16th Oct 2017, 9:24 AM
Niush
Niush - avatar
0
thank you all of you it's worked now
16th Oct 2017, 9:29 AM
kalpesh Dharpure
kalpesh Dharpure - avatar