+ 2

Why is <iframe> tag inactive on Sololearn?

I wrote a web code very recently and i tried to embed a video using the <iframe> tag but it pops an error giving some details why it won't display the embedded webpage which I don't understand. I need replies, thanks.

21st Feb 2019, 8:44 PM
Precious
Precious - avatar
8 ответов
+ 6
//I saw your code earlier, you used Facebook video in iframe, its not sololearn problem because Facebook, Google and some other site are blocked for iframe https://stackoverflow.com/questions/9680215/load-facebook-into-an-iframe
21st Feb 2019, 8:53 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 6
https://www.sololearn.com/learn/338/ I used iframe here. https://code.sololearn.com/WR6RaiVHqJD0/?ref=app
21st Feb 2019, 9:47 PM
JTLZ
+ 5
//Precious you can use YouTube videos in iframe by embedding //Here is examples https://code.sololearn.com/Wa1wGxEdZCkv/?ref=app
21st Feb 2019, 9:00 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 5
//Precious here you go <iframe src="https://www.youtube.com/embed/nKIu9yen5nc" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
21st Feb 2019, 9:24 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
Shudarshan Rai 👑 thanks for the reply. At first, I used YouTube but it didn't showed up. So I tried FB. Now I get it, thanks
21st Feb 2019, 8:59 PM
Precious
Precious - avatar
+ 2
//Yup💪💪
21st Feb 2019, 9:31 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
How did you make the link have an "embed" child? The link i copied was like this https://m.youtube.com/watch?v=nKIu9yen5nc
21st Feb 2019, 9:05 PM
Precious
Precious - avatar
+ 1
I just also found out that i was supposed to use the share button to get the iframe code. Thanks Shudarshan Rai 👑 😊😊
21st Feb 2019, 9:29 PM
Precious
Precious - avatar