Muhammad Abdel-wahhab
Muhammad Abdel-wahhab

Reputation: 11

I put an image in my html file but it doesn't load

<img src="file:///C:/Users/muham/Desktop/HTML/Akaria.jpeg" alt="Akaria logo">

This is what I write on the Atom Text editor, but the image doesn't load

Upvotes: 0

Views: 46

Answers (3)

Serkan Gen&#231;er
Serkan Gen&#231;er

Reputation: 1

It might be possibly caused by your reference to the img source. You can left click and get the relative path instead of absolute path and try using it which might possibly solve your issue. Also check your file name and remember that it is case sensitive- might misspell the name of the image file as well. Maybe, I am not sure on that, but using width and height attributes might also be useful, but I don't think it was the issue. Probably, your reference/file name is wrong. HMU if u need any help or if it works or not

Upvotes: 0

Maxim Kalinin
Maxim Kalinin

Reputation: 31

enter image description here

img element in your index.html:
<img src="assets/images/some-picture.jpg" alt="">

Upvotes: 1

Yameen bhutta
Yameen bhutta

Reputation: 1

First make a folder than copy your files in it and make an image folder place all your images there and then give the right path in the image src it will work.

like this:

Upvotes: 0

Related Questions