+ 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

9th Sep 2023, 5:35 PM
Faraz Haghbayan
Faraz Haghbayan - avatar
7 Antworten
+ 1
You can see it when you scroll really down
9th Sep 2023, 5:39 PM
Faraz Haghbayan
Faraz Haghbayan - avatar
+ 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.
10th Sep 2023, 1:05 AM
Samir Krasnic
Samir Krasnic - avatar
+ 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>
10th Sep 2023, 6:31 AM
Faraz Haghbayan
Faraz Haghbayan - avatar
+ 1
I really want some help with it
10th Sep 2023, 9:43 AM
Faraz Haghbayan
Faraz Haghbayan - avatar
+ 1
But the anchor tag idea is too good! Can you give me a example how it would look like?
10th Sep 2023, 9:43 AM
Faraz Haghbayan
Faraz Haghbayan - avatar
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.
10th Sep 2023, 9:00 AM
Samir Krasnic
Samir Krasnic - avatar
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.
10th Sep 2023, 9:58 AM
Samir Krasnic
Samir Krasnic - avatar