+ 1
Why is it that if I insert audio it will not play? If I insert image it will not show the image I inserted?
And if I insert video it will not play? Who can tell me please??
9 Answers
+ 1
We cant import local files to sololearn, you can try with diferent app if you need to, for sololearn use dropbox or some other cloud site, to upload your video or image,and than use url to set as path.
If you type this on pc, or inside other app on phone, image will work, but only if image is placed in same directory (folder) as html file. Video source is invalid it is just some numbers without file extension (.mp4, .ogg) so it cant work.
Here is more about relative path:
https://www.w3schools.com/html/html_filepaths.asp
And about accepted file formats:
https://www.w3schools.com/html/html_media.asp
+ 2
Send us your code you wrote as example that we can see which Methode you used.
+ 2
Can you post your code so we can see
+ 2
Tope Odunlami Look at the third and forth answers sorted per Date. đ
+ 1
<video controls autoplay loop>
<source
src="1657384797593">
</video>
+ 1
<audio controls>
<source src = "audio.mp3" type="audio/mpeg">
<source src = " audio.ogg" type="audio/ogg">
</audio>
Note; This is for 2 audios if you put one just write one time n then tag close
0
<html>
<head>
<title>eid mubarak</title>
</head>
<body>
<img src="sallah.jpg" alt=""/>
</body>
</html>
0
Thanks đâđ
0
Post the code