+ 2
Video
Dear Sololearners, I wanted to add a YouTube video but as you can see it does not work,why? https://code.sololearn.com/WrZ9sNOEkpej/?ref=app
7 Antworten
+ 1
You can see it when you scroll really down
+ 1
It doesnt work bcs you only have images on your page and not videos.For video you can use <video> tag or <iframe> tag.
+ 1
Heahahah 😅right..
I did this but it still doesn't work :
<iframe width="320" height="240" src="https://www.youtube.com/embed/Q6_5InVJZ88"></iframe>
+ 1
I really want some help with it
+ 1
But the anchor tag idea is too good!
Can you give me a example how it would look like?
0
Since you dont want to change your images to <iframe> you can keep them and wrap them with anchor tag.But in that case you'll have to have another html with <iframe>.
However i cant decide are you just aharing your code or really want some help with it.
0
You need to make a page with video only f.e video.html
Then in your webpage call <a href="video.html".
And inside your anchor you add image.
You can also use video poster atribute,since you dont have option to create multiple htmls files on sololearn.