0

How can I embed an image already saved on my computer into my web page. already tried the img src but it does not display

I have also specified its dimensions. and what if the image does not have a .jpg or png extension.

1st Sep 2018, 1:26 AM
onda Emmanuel
1 Antwort
0
that's correct, it is by img src. the reason it is not working is maybe , you are using wrong path, do it like <img src"must_be_correct_path.extension"> in case you are having problem with writing correct path, then for now, put the image on the same folder as your . html webpage is, in the same place and just write the filename in src, it will work. don't worry about the extension much, modern browsers fix that on their own, but the image must exist at the path you specified in src otherwise the path may be incorrect, try navigating to the path you wrote in your browser, if it opens. you can write absolute or relative path.
1st Sep 2018, 2:01 AM
Sandeep Chatterjee