+ 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
10 Respuestas
+ 1
https://www.sololearn.com/Discuss/976260/?ref=app
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.
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">
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.
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
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
0
Check the image format or extension(.png,.jpg)
For example < img src=“images/moon.png” >