0

Html image problem

I have visual studio 2019 and I wanted to add a image in my html website but when I but the <img src=image name /> it shows no file found stil I put the img in same file where my html file is pls help

27th Sep 2020, 8:49 AM
Shabbir Mustafa
Shabbir Mustafa - avatar
6 Respostas
+ 1
Paste the exact img tag markup here. If "<img src=image name />" is your exact markup, you need to learn more about what URL's are. Collect the following information to find out why the URL of your img element isn't matching the URL of an image served by your website. What is the URL of the web page when you run it? Something like https://localhost:44342/mypage.html ? Copy, paste, and share the absolute URL to your image from the web browser. Is your image in something like wwwroot/img directory in your project? Verify that whatever URL mentioned above matches the path to your intended image file.
27th Sep 2020, 9:04 AM
Josh Greig
Josh Greig - avatar
0
Maybe you did not use qoutation around the name or you forget the extension of the image
27th Sep 2020, 8:56 AM
Ruba Kh
Ruba Kh - avatar
0
No I have just practicing and last time I had old visual studio I had no issues in that but this have some problem
27th Sep 2020, 11:24 AM
Shabbir Mustafa
Shabbir Mustafa - avatar
0
I just copied the image in the html folder and wrote the image name in <img src="img124" alt=""/> and it was done image was shown in my website but this time they added some new features and I have not understand that I browsed it but no benifit
27th Sep 2020, 11:27 AM
Shabbir Mustafa
Shabbir Mustafa - avatar
0
What about the extension .png or .jpg or .svg and so on <img src="img124.png" alt=""/>
27th Sep 2020, 12:50 PM
Ruba Kh
Ruba Kh - avatar
0
Sorry everyone actually now I got the problem I had download visual studio not visual studio code that is why there are some complications btw thanks a lot both of you
27th Sep 2020, 12:55 PM
Shabbir Mustafa
Shabbir Mustafa - avatar