I'm nearly finished with an HTML assignment, but I've been stuck for several days trying to add a video and an audio file. The browser displays the fallback text instead of finding the media. Here's the relevant code:
Not found.
What might be wrong with these elements or their file paths?
2 Answers
The audio path is suspicious because it contains backslashes. URLs in HTML should use forward slashes. Use something like `multimedia/audio_test.mp3` or `multimedia/audio/test.mp3`, depending on your actual folders. You can also specify the media type explicitly:
``
If the player still cannot load the file, open the browser’s developer tools and check the Console or Network tab for a 404 error. That usually confirms that the path is incorrect.
The HTML elements look mostly fine, so check the paths first. Relative paths are resolved from the location of the HTML file, not from wherever you expect the project folder to be. For example, if the page is in one folder and the video is in a sibling or parent folder, you may need a path such as `../videos/IA.mp4` instead of `documents/IA.mp4`. Also make sure the filename, capitalization, and extension match exactly.

The browser only says that the video cannot be found, so I’ll check the file’s location relative to the HTML page and inspect the developer tools for a 404.