+ 1

Adding an image in html

I've come up against an issue with adding an image to an html document. How the hell is it done? I've used all sorts of url's from all over Google images. I've created new folders and re named images. I've tried to use the image they say to use if you haven't got a link and nothing works. I've wasted an entire afternoon trying to add an image to a simple Web page. I didn't think I was stupid, but this supposedly simple task has me stumped

13th Mar 2022, 10:50 PM
Robert Cadman
Robert Cadman - avatar
10 Respostas
+ 1
https://www.sololearn.com/Discuss/976260/?ref=app
13th Mar 2022, 11:31 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
adding an image from Google images is a mess. you have to visit the site hosting the image and copy its url, often with the file extension .jpeg .png . jpg ... could you share the < img > you tried with the src url.
13th Mar 2022, 11:00 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
Example image tag for images from web: <img src="https://icatcare.org/app/uploads/2018/07/Thinking-of-getting-a-cat.png" alt="Nice cat">
13th Mar 2022, 11:04 PM
William Owens
William Owens - avatar
13th Mar 2022, 11:04 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
if you downloaded the image to your computer, then you need to write the correct path to the image in src. just put the image in the same folder as html file and write the image name in src. without spaces in filename preferably.
13th Mar 2022, 11:09 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
Thank you, that was truly helpful. How about if I were to choose an image from my phone? I created a new file and simplified the name so I thought the new code should read <img src="shroom.jpg" alt=""/> Not sure where I'm going wrong
13th Mar 2022, 11:11 PM
Robert Cadman
Robert Cadman - avatar
0
You can upload your images to dropbox,google drive, or any other site for similar things, then take link of your image and place inside src of img tag
13th Mar 2022, 11:41 PM
PanicS
PanicS - avatar
0
Check the image format or extension(.png,.jpg) For example < img src=“images/moon.png” >
15th Mar 2022, 8:28 AM
Mohamed Abdilahi