Reputation: 13
Im using netbeans and calling an image on my desktop. This is my code: <img src ="desktop/SF.jpg" height="300" width="300">
and it is not being displayed! I have tried moving to documents and calling it from there also and still would not work!
Upvotes: 1
Views: 112
Reputation: 81
Create a new folder and give a name like "myewfolder" and put all your html and css files and also the images inside this newly created folder.
Now update your image code like bellow:
Upvotes: 0
Reputation: 168
Upvotes: 0
Reputation: 1932
Checkout the extension its .jpg
or .png
also check the its capital letter or small letter (.JPG
) or (.PNG
).
Upvotes: 0
Reputation: 193
Problem in the link of the image referenced, rest of the code is fine. Write the complete absolute address of desktop. for example. C:/Users/xyz/desktop/image.jpeg.
Upvotes: 1