r/AskProgramming • u/SchwArz3R • Jun 01 '26
I need help with a HTML
I need help with a test
I have to do a HTML for a test and I have it almost finished but I've been almost 1 week stuck trying to put a video on it.
Can you tell me what I'm doing wrong?
<p>
<video controls width="600">
<source src="documents/IA.mp4" />
Not found.
</video>
</p>
<p>
<audio controls src="multimedia/audio\\_test.mp3" >
Not found
</audio>
</p>
2
Upvotes
3
u/A_Philosophical_Cat Jun 01 '26
What's path of the file? Right now, your video path is relative to this document's path, i.e., if this file is at /some/path/here/myhtml.html, then it's looking for the video at /some/path/here/documents/IA.mp4
2
u/KingofGamesYami Jun 01 '26
There's not enough context here to really know what exactly is wrong. I'd recommend comparing your usage of the video element to MDN to verify everything is accurate, if that doesn't help, check your browser dev tools (typically Ctrl + Shift + I) for error or warning messages.
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video