Home > Software engineering >  Why some of my picture isn't showing on HTML?
Why some of my picture isn't showing on HTML?

Time:10-02

My image isn't showing on my live website, but on the localhost it shows up.

Here is screenshot on the live website

screenshot

and here is the code for those two.

image 1= <img src="./assets/images/pubg.jpg" alt="PUBG">

image 2= <img src="./assets/images/pubg2.png" alt="PUBG2">

Image 1 works. I don't know why image 2 doesn't.

CodePudding user response:

Can you show your directory structure? if everything's alright, it might just be the wrong name of your Pictures or Extensions.

CodePudding user response:

Check if file extensions are right, you've used .png for and .jpg for another. Also double check file names and location.

  • Related