What is the error of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 25

What is the error of this code?

I don't know How to add iframe tag. https://code.sololearn.com/WH2ZwDZUh4ES/?ref=app

23rd Sep 2017, 12:25 AM
Chinthana Kavinda
Chinthana Kavinda - avatar
2 Answers
+ 5
YouTube doesn't allow direct linking to its webpage for security reason. If you just want to embed the video only, changing the watch to embed will do the job. Before: https://m.youtube.com/watch?v=p_N32VrAQhw After: https://www.youtube.com/embed/p_N32VrAQhw P/S: You can get the embeded link by clicking "Share" @ YouTube site too.
23rd Sep 2017, 12:59 AM
Zephyr Koo
Zephyr Koo - avatar
+ 2
alot of websites deny this action for security reasons
24th Sep 2017, 3:21 PM
Styxincewa
Styxincewa - avatar