Can't insert image into my tribute page using CodePen

Here is the code I used. This is what the image is saved as but it doesn’t show up. Are .png not supported? I’ve tried .jfif and .webp files and none are working.

<figure id"img-div">
      <img id="image" src="Muhammad Ali.png" alt="Muhammad Ali"/>
      <figcaption id="img-caption">

Does the audit of the page by freecodecamp dictate it must show up correctly? Because I could submit it as is and we could see if it passes.

just search image on web then right click copy image source adress. Also for tribute page i also did Muhammed Ali :))

1 Like

That worked!!! You’ve made me very happy I was ready to give up learning code and go back into construction loool thanks a lot!
p.s. nice choice :wink:

1 Like

the issue is that you need to link to an image available online, not on your computer

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.