I need to add an image in html can u pls help me that what should be the src because I can't see the image after entering src | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

I need to add an image in html can u pls help me that what should be the src because I can't see the image after entering src

Html image

30th Sep 2020, 6:10 AM
Sukant Tripathy
Sukant Tripathy - avatar
19 Answers
+ 6
Hope this will help you <img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">
30th Sep 2020, 6:12 AM
🔰Saurabh🔰
🔰Saurabh🔰 - avatar
30th Sep 2020, 6:12 AM
Vadivelan
+ 4
It is easy and also for fun Many of people are put down the syntax of code but they have not the proper knowledge of that formula or syntax So I am explain you the formal (syntax) with good example :- Syntax :- <img src ="img.jpg"> It is the simple syntax Now make it creative with an Example <img src="tajmahal.jpg" align="center" height=50% weight=50%> Okay so here I am using a picture name tajmahal in my Document And here our first query that many of people are adding the name of picture in Document with proper extension but img not visual to any one In this people have not notice the property of picture if you not giving the proper path Your img your img so src is not usefull So ensure that you are Giving the proper path Soon the extension format For example You can apply jpg png and more format so use image with proper extension Thank Have a great day HansRaj
30th Sep 2020, 9:38 AM
HansRaj Thakur
HansRaj Thakur - avatar
30th Sep 2020, 8:27 AM
Divya Mohan
Divya Mohan - avatar
+ 3
with img tag you can add a image in your code <img src="https://code.sololearn.com"/>
1st Oct 2020, 6:01 AM
KashishAggarwal
KashishAggarwal - avatar
+ 3
Try using Dropbox, and uploading your images on the app, and then: <img src ="https://dl.dropbox.com... jpg" >
1st Oct 2020, 8:36 PM
Njabulo 💯
Njabulo 💯 - avatar
+ 2
Meake sure that your image src has .jpg, .png or .gif at the end
30th Sep 2020, 6:15 AM
Shreyansh
Shreyansh - avatar
+ 2
By using<img> <img src="link of the image" alt="image" width="400" height="300"> Hope it helped😃
1st Oct 2020, 12:47 PM
M£RÇ¥💎 {ßÜ$¥}
M£RÇ¥💎 {ßÜ$¥} - avatar
+ 2
<img src="imagelink.jpg" alt="if_image_failed_to_load_what_will_visitor_see"/>
1st Oct 2020, 9:55 PM
Ahmad Talha
Ahmad Talha - avatar
+ 2
Use <img> tag to insert a image in html.
2nd Oct 2020, 5:14 AM
Sai Kiran
Sai Kiran - avatar
+ 1
Yes
30th Sep 2020, 6:13 AM
🔰Saurabh🔰
🔰Saurabh🔰 - avatar
+ 1
Thank you so much u all😃😃😃😃
30th Sep 2020, 6:16 AM
Sukant Tripathy
Sukant Tripathy - avatar
0
Is it necessary to add alt tag
30th Sep 2020, 6:13 AM
Sukant Tripathy
Sukant Tripathy - avatar
0
Ok thank you so much
30th Sep 2020, 6:15 AM
Sukant Tripathy
Sukant Tripathy - avatar
0
Ok
30th Sep 2020, 6:15 AM
Sukant Tripathy
Sukant Tripathy - avatar
0
I don't want to install Dropbox is there any other method
30th Sep 2020, 6:39 AM
Sukant Tripathy
Sukant Tripathy - avatar
0
img tag: <img src="image.jpg" alt="" width="w" height="h"/> The reasons image didn't show up in the webpage might be: 1. The source (src) path selected might be wrongly put. See for the correct hierarchy of the file. 2. Extension of image file might be different. (.jpg, .png,....) 3. Try changing the width and height of the image [width="w" height="h"] in pixels (px) or percentage (%) as its size might not be adjusted for the webpage. 4. Give the image name (value) in alt="imageName" property, and if the browser shows no image with alt name on the screen; means your browser doesn't support the image format. Try to open the code in different browser.
1st Oct 2020, 7:13 AM
Prasad Tupkari
0
U better search that image in google and "copy link address" and paste it in src
1st Oct 2020, 10:32 AM
dinesh stark
dinesh stark - avatar
0
<img src="http://www.sololearn.com/images/tree.jpg" alt="" /> You can learn it from sololearn- html "images" courses ,,i also copy it from there .or you can from Google -W3 schools its also good
7th Jan 2022, 7:44 AM
KashishAggarwal
KashishAggarwal - avatar