Why are the image's that I added to my web page not displaying | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why are the image's that I added to my web page not displaying

When I add the image source to my web page not displaying https://code.sololearn.com/WmnOjOyhTw0V/?ref=app

18th Sep 2023, 10:11 AM
Elidad Teme
Elidad Teme - avatar
13 Answers
+ 5
Elidad Teme In your image element you have provided the URL of the image which is not the actual path of the image. You need to provide the URL of an actual image file (e.g., a .jpg, .png, or .gif file).
18th Sep 2023, 10:26 AM
JAY
JAY - avatar
+ 3
Elidad Teme Your image URL path is incorrect, Read this, you will got your answer. https://www.sololearn.com/post/1742383/?ref=app
18th Sep 2023, 10:34 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 2
Elidad Teme With your doubts, always share your code, for better guidance.
18th Sep 2023, 10:19 AM
JAY
JAY - avatar
+ 2
You don't need to download each and every image to show in the output. If you want to show Google images follow these steps Find the Direct Image URL: When you open an image on Google Images, right-click on the image. Select "Open image in new tab" (or similar) in the context menu. Copy the URL from the address bar of the new tab. This is the direct link to the image.
18th Sep 2023, 10:36 AM
JAY
JAY - avatar
+ 1
* You should first open the image as a preview in your browser, then copy the link! If it's a PC5 image, use this link instead, I have tested, and it works with your codes! : https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSEb-_7VOYIcVJhn9v8VqjAgLe_0x6MRwbEUw&usqp=CAU
19th Sep 2023, 7:19 AM
Meiqdad Hassani
Meiqdad Hassani - avatar
+ 1
Elidad Teme In your image element you have provided the URL of the image which is not the actual path of the image. You need to provide the URL of an actual image file (e.g., a .jpg, .png, or .gif file).
19th Sep 2023, 11:50 AM
Shams Ningi
Shams Ningi - avatar
+ 1
DRO KOUAME LUCIEN it is optional.
19th Sep 2023, 8:37 PM
JAY
JAY - avatar
0
Thank you
18th Sep 2023, 10:28 AM
Elidad Teme
Elidad Teme - avatar
0
So if I download the img can I use it then
18th Sep 2023, 10:29 AM
Elidad Teme
Elidad Teme - avatar
0
Thank you
18th Sep 2023, 10:43 AM
Elidad Teme
Elidad Teme - avatar
0
Your problem is that you tagged the wrong url for the image you want to display in your html document. You rather replace it by the source of the image: "https://www.computervillageonline.com/wp-content/uploads/2021/02/playstation-5-with-dualsense-front-product-shot-01-ps5-en-30jul20.png" Then resize it with in CSS : img { height: auto; max-width: 100%; } Et voilà ! 👍
18th Sep 2023, 6:31 PM
Tony K
0
Thank you 🙏
19th Sep 2023, 11:05 AM
Elidad Teme
Elidad Teme - avatar
0
Close the tag like this <img />
19th Sep 2023, 8:17 PM
DRO KOUAME LUCIEN
DRO KOUAME LUCIEN - avatar