How to import images from website on HTML?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to import images from website on HTML??

Need help, just started HTML and I can only import from local storage, please how I can I import from like other webpages or the internet without having it on my PC?

3rd Apr 2023, 7:13 AM
Huh?(ʘᴗʘ✿)
10 Answers
+ 3
Try this: <img src=" link"> Go on any website right click on image you want select copy link address and paste it in "link" in src... that's it you are done.👍
3rd Apr 2023, 7:39 AM
BORN-LOSER
BORN-LOSER - avatar
+ 3
☁️Bishop👨🏾‍🚀☁️ most pictures end in a file format like .jpg or .png. The link you have doesn't end in that, so it's a webpage link. If you open that link, then right-click on the image, you might find the correct path with the right format
3rd Apr 2023, 8:15 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
<!DOCTYPE html> <html> <body> <h1>Importing Image from Website</h1> <!-- Specify the URL of the image you want to import --> <img src="https://example.com/image.jpg" alt="Example Image"> </body> </html>
4th Apr 2023, 11:06 PM
˹ᴅᴇᴠᴇʟᴏᴘᴇʀ ᴛᴧɴᴊᴇᴅ˼
˹ᴅᴇᴠᴇʟᴏᴘᴇʀ ᴛᴧɴᴊᴇᴅ˼ - avatar
+ 1
Ausgrindtube 😝Silly me, missed that Thanks
3rd Apr 2023, 8:21 AM
Huh?(ʘᴗʘ✿)
+ 1
No problem. We've all been there! Happy coding
3rd Apr 2023, 8:22 AM
Ausgrindtube
Ausgrindtube - avatar
0
Rajat C Tried it earlier, it didn't seem to work The code👇 <img src="https://www.peakpx.com/en/hd-wallpaper-desktop-nveuf" alt="wallpaper"> I'm I missing something 🤔??
3rd Apr 2023, 7:56 AM
Huh?(ʘᴗʘ✿)
0
<img src='link'/>
4th Apr 2023, 12:11 AM
Evan La Zarr
Evan La Zarr - avatar
0
howabout a tutorial
4th Apr 2023, 12:12 AM
Evan La Zarr
Evan La Zarr - avatar
0
You can do it 3 ways 1: HTML <img src=“imageURL”/> 2: CSS #imageId{ background-image:url(“imageURL”); } 3: Javascript document.getElementById(“imageId”).src = “imageURL”;
4th Apr 2023, 9:54 AM
Yousif R Wali
Yousif R Wali - avatar
0
<img src = "IMGURL" /> #imgivoryrose{ background-img:url("IMGURL") ; document.getElementById("imgivoryrose"). src ="IMGURL" ; 😮😮🙂😈😈
4th Apr 2023, 6:24 PM
ASIM FARHEEN ❄️⚡⚡🤳⚡⚡❄️
ASIM FARHEEN ❄️⚡⚡🤳⚡⚡❄️ - avatar