Reputation: 11
<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
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
Reputation: 31
img element in your index.html:
<img src="assets/images/some-picture.jpg" alt="">
Upvotes: 1
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