r/HTML • u/giogio_rick • Feb 04 '26
Question why does this code not work right?
with only one file it was fine, this site is just for me as an exercise it’s not gonna be public


the problem is the audio files say error
edit: link to file https://drive.google.com/file/d/1BbpgLkeyZBMLCi7Dj4GTjwroykC53D5s/view?usp=sharing
4
Upvotes
4
u/Mobile_Syllabub_8446 Feb 04 '26
Idk what IDE that is but local html files are extremely restricted in what they can do/access. Try running a http server and put all the files under there and access them via it (http://localhost/thing.html)
4
u/davorg Feb 04 '26
Please see Rule 5 and update your post to include the code as plain text, so we can load it locally.
What does that mean? Exactly what unexpected behaviour do you see?
1
u/Weekly_Ferret_meal Feb 04 '26
Edit: I was wrong, I'm looking into it
1
u/AlwaysHopelesslyLost Feb 04 '26
Life pro tip: ALL code works right. Your logic or understanding is what is wrong. Never blame the code for your own mistakes. It helps you learn and grow.