+ 3

Can someone please tell me more on how to insert an image in html

Image insertion

10th May 2019, 11:49 AM
Khalid
Khalid - avatar
11 Respostas
+ 25
You need to use some image hosting site. I use imgur. 1. Go to imgur.com 2. Upload your image 3. Copy direct link to your image. 4. Paste this link as 'src' attribute of <img> Thats it!!
10th May 2019, 4:22 PM
Mitali
Mitali - avatar
+ 12
Use it... <img src="img.jpg" alt="xyz" width=".." height="..">
10th May 2019, 1:37 PM
Mr AJX 😎😈
Mr AJX 😎😈 - avatar
+ 11
Thank you so much for the answer Mitali I needed this 😅
10th May 2019, 5:09 PM
$hardul B
$hardul B - avatar
+ 9
To insert a img in HTML u need the img tag. It's syntax is <img src="#.." alt="N.a."> Src attribute is use to define source or the URL of image . U can copy URL from the web and paste it. In sololearn u can't use the images of ur phone in ur code as it doesn't have a url. Alt attribute is used to define alternate text for image if it fails to load. These are the main attributes . Else are width , height , float etc. Not so much important. Thanks
10th May 2019, 11:55 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 9
Using the <img> tag. Please check the html tutorial.
10th May 2019, 1:05 PM
Sonic
Sonic - avatar
+ 7
<img src= "path" alt="Abc" />
10th May 2019, 4:25 PM
Jaspreet Singh
Jaspreet Singh - avatar
+ 2
Use the img tag. You can get a clickable image by using nesting in an anchor tag. <a> đŸ€”
10th May 2019, 4:51 PM
Sanjay Kamath
Sanjay Kamath - avatar
0
<img src= "path">
10th May 2019, 7:18 PM
Wei Lin
Wei Lin - avatar
0
<img src="image.jpg" />
10th May 2019, 9:06 PM
Yousef Bahnsawy
Yousef Bahnsawy - avatar
0
Mitali you have pass certification exam, asking basic question.use
11th May 2019, 2:35 AM
Ritesh Tiwari
0
<IMG src= Ritesh.jpg
11th May 2019, 2:36 AM
Ritesh Tiwari