potatoCatz
potatoCatz

Reputation: 107

HTML won't display image (image is stored locally and in the same directory with html file)

The webpage won't display my image and shows the broken image icon, image is in the same directory as index.html in the folder called web-dev, here's the code:

<img src=”image1.jpg”  height = "100" width = "100">

enter image description here

Upvotes: 0

Views: 412

Answers (2)

Rajorshe Mistry
Rajorshe Mistry

Reputation: 51

Try this -

<img src="images1.jpg" alt="images1" width="100" height="100" />

Upvotes: 1

THess
THess

Reputation: 1007

Try using " instead of .

Like this:

<img src="image1.jpg"  height = "100" width = "100">

Upvotes: 2

Related Questions