+ 20
How to add image in HTML using links?
Issue is resolved thanks for the helps.
49 Answers
+ 25
Actually, you need to use the URL of the image, not the URL of the page containing the image. Here, use this one:
https://upload.wikimedia.org/wikipedia/commons/c/c7/Mount-Everest.jpg
+ 18
Right click on the image (hold the image if you're on mobile), copy URL. Done!
+ 14
The link was wrong ..The right link to that image is ~
https://upload.wikimedia.org/wikipedia/commons/c/c7/Mount-Everest.jpg
Corrected Code ~
https://code.sololearn.com/WT30Z62qFeEg/?ref=app
+ 11
<img src="url_of_img">
https://www.sololearn.com/learn/HTML/1030/?ref=app
+ 8
I’m seeing a lot of correct answers utilizing an image link address, but I just wanted to toss in that you can utilize a saved image as well as long as its path is accessible.
For example, if i had a folder called “images” and an image called “apple.jpg” within that folder, i could insert the image by using:
<img src=“images/apple.jpg”>
+ 7
🤔 Can you post the link here?
+ 6
Thank you very much.
+ 6
Blake
Very true. I am so used to using DropBox (from the phone) that I forgot you can have pics on pc. This opens up a whole other world for me! 😂🤣😂🤣
+ 4
Make attention that though image link end with .jpg, its not true that link is an image (if you go to url https://en.m.wikipedia.org/wiki/File:Mount-Everest.jpg you can see that it link to a web page containing the image)... This because web servers can send to client any filetype though if image extension in in request url... The original url of your example image is https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Mount-Everest.jpg/800px-Mount-Everest.jpg . Try to set it like src of your img element and you will see
+ 3
https://code.sololearn.com/Wr9kxr9PteJG/?ref=app
+ 3
ThThinka
I do the sane thing! 😂🤣
+ 3
<img src=“link.image_format” alt=“alternate text”>
src >> contains the path of the image.
alt >> Displays an alternate text incase the image is unavailable
You can style the image using CSS
+ 3
use image url
+ 2
very easily done! just find the image copy an paste url in your code and run it!
for example:
https://code.sololearn.com/Wfol3Y6yqKSS/?ref=app
+ 2
I save the complete project folder to Dropbox, create a link for each image, and use that link as my site images’ urls.
+ 2
You're like:
<img src="[URL of image]" alt="[alternative text in case URL doesn't work]"/>
Then run it.
+ 2
It looks like the question has been already answered in many awesome ways. Here is my input on how to get the correct link of any image from any website.
You can obtain the correct link by right-clicking the picture you want and select copy image address from the drop down menu. This link will always take you to a page containing only the image.
+ 2
your link must have extension on end the type of image .jpg or .png :))
+ 2
The one issue with doing a link from the PC is if you plan on making it a long term website, you need to make sure the photo remains in the same position or remember to change the location if it is moved. Using Google Drive or a photo host of some kind is ideal for this reason.