Hi everyone why this video don't work in my browser.( My browser is chrome) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Hi everyone why this video don't work in my browser.( My browser is chrome)

<html> <head> <title>first</title> <video controls> <source src="https://www.youtube.com/watch?v=kOZ8bRAO7YQ/video.ogg" type="video/ogg"> it will be work </video> </head> </html>

29th Sep 2022, 11:01 AM
Hakeem
Hakeem - avatar
8 Answers
+ 7
You don't have body of your web page.. Add in body tag.. For youtube videos , use iframe and embed like this : <body> <iframe width="320" height="240" src="https://www.youtube.com/embed/kOZ8bRAO7YQ"> </iframe> </body> Note: domainname/embed/id
29th Sep 2022, 2:27 PM
Jayakrishna 🇮🇳
+ 2
Since you're trying to host it from youtube, you need to embed the video <iframe width="560" height="315" src="https://www.youtube.com/embed/kOZ8bRAO7YQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
29th Sep 2022, 7:20 PM
Chris Coder
Chris Coder - avatar
+ 1
where is the "video"?
29th Sep 2022, 11:04 AM
Jayakrishna 🇮🇳
+ 1
Do you mean you are linking from your site but it doesn't work or that you are trying to view a video with your browser and it doesn't work?
29th Sep 2022, 11:10 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Embed the video
29th Sep 2022, 2:23 PM
Lakshay
Lakshay - avatar
0
I have added the code. My question is why the video not working in my browser
29th Sep 2022, 1:59 PM
Hakeem
Hakeem - avatar
0
<html> <head> </head> <body> <video controls> <source src=“path—-“> </video> </body> </html>
30th Sep 2022, 4:46 PM
Navi
Navi  - avatar
0
Embed your video by copying the iframe of it and it will work
30th Sep 2022, 11:10 PM
manel slama