+ 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?
10 Réponses
+ 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.👍
+ 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
+ 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>
+ 1
Ausgrindtube
😝Silly me, missed that
Thanks
+ 1
No problem.
We've all been there!
Happy coding
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 🤔??
0
<img src='link'/>
0
howabout a tutorial
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”;
0
<img src = "IMGURL" />
#imgivoryrose{
background-img:url("IMGURL") ;
document.getElementById("imgivoryrose"). src ="IMGURL" ;
😮😮🙂😈😈