Search code examples
htmlgoogle-chromewindows-7-x64

Image not loading on local site I made


Using Chrome Version 109.0.5414.120 (Official Build) (32-bit) because it is the last version for Windows 7 (I believe).

<!DOCTYPE HTML>
<HTML>
 <HEAD>
  <TITLE>Vagamond Detective From The Wild West</TITLE>
  <H3>Vagamond Detective From The Wild West</H3>
 </HEAD>
 <BODY>
  <audio src="1-33. Jake Marshall ~ Vagamond Detective From The Wild West.flac", controls=pause, play>
  <img src="Jake Marshall.png", alt="Jake Marshall">
 </BODY>
</HTML>

When I inspect I see no issues. All files are in the same folder, including the HTML file, so there is nothing wrong with the path.

Expected image to load. It didn't.


Solution

  • After debugging your code I found out your audio tag is not closed. Also the controls attribute was incorrect.

    Try this:

    <audio src="1-33. Jake Marshall ~ Vagamond Detective From The Wild West.flac" controls></audio>