Image i sertion in web page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Image i sertion in web page

I have inserted image in my html web page and its in the same folder with html file in place of src I mentioned "image name.jpg " .Even then I m not able to view image in browser. Plz suggest solution

4th Oct 2021, 4:08 AM
Tanu Jain
11 Answers
+ 2
Did you used the: <img src="" alt=""> ?
4th Oct 2021, 4:29 AM
Eashan Morajkar
Eashan Morajkar - avatar
+ 1
Eashan Morajkar i wrote it like this <IMG src = "" alt=""/>
4th Oct 2021, 4:34 AM
Tanu Jain
+ 1
Tanu Jain does the code works?
4th Oct 2021, 4:36 AM
Eashan Morajkar
Eashan Morajkar - avatar
+ 1
Eashan Morajkar no image is not visible in browser
4th Oct 2021, 4:38 AM
Tanu Jain
+ 1
Tanu Jain can you send the full code?
4th Oct 2021, 4:42 AM
Eashan Morajkar
Eashan Morajkar - avatar
+ 1
Here is an example of how to insert image on the webpage (you should put your link to the image as src attribute value. ) https://code.sololearn.com/W9zMjbTvhOhQ/?ref=app
4th Oct 2021, 6:44 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
Send the code
4th Oct 2021, 6:54 PM
Onik Artushyan
Onik Artushyan - avatar
+ 1
<img src="" alt=""> This is used for insert image in html document 💯.
5th Oct 2021, 5:27 PM
Shubham Bhatia
Shubham Bhatia - avatar
+ 1
Tanu Jain, are you sure the path to the image is valid?
5th Oct 2021, 9:32 PM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
Maybe your image is wrong, and try to play with the dimensions of the image.
6th Oct 2021, 6:37 AM
Onik Artushyan
Onik Artushyan - avatar
0
This is the part of code Eashan Morajkar Shubham Bhatia Onik Artushyan <div class="dest">                 <h3>ShikharJi</h3>                 <img src="C:\Users\DELL\Documents\HTML5_online\IMG_5165.jpg"/>                 <div class="dest-text">                     Location :Jharkhand,India.                 </div>             </div>
5th Oct 2021, 6:53 PM
Tanu Jain