1

I want background music on my page, but i cannot locate it. Ive tried it many times and I am sure the path is correct. Path of the file : C:\Users\matous\Downloads\idklol


</head>

<body>
<div class = 'headings'>randompage.</div>

<embed src=“C:/Users/matous/Downloads/idklol.mp3”>

</body>
</html>

Instead of music controls window, theres window that says my file does not exist or has been moved.

Gabriele Petrioli
  • 191,379
  • 34
  • 261
  • 317
ikuro
  • 87
  • 5

1 Answers1

0

Have you tried moving the audio file to a path relative to your HTML document?

Given the following:

www/index.html
www/assets/idklol.mp3

You would set the path in index.html as follows:

<embed src="./assets/idklol.mp3">
DevMike
  • 1,630
  • 2
  • 19
  • 33