0

How can I add images to my website

I mean a local image from my file

22nd Aug 2025, 11:38 AM
Mada Isaac
Mada Isaac - avatar
4 Respostas
+ 2
To add an image to your website: 1. Save the image file (e.g., "myimage.jpg") in the same folder as your HTML file. 2. Use the `<img>` tag in your HTML code. 3. Specify the image file name in the `src` attribute: `<img src="myimage.jpg">`. That's it!
22nd Aug 2025, 11:40 AM
OPá­„â˜…â±ŁÄŠÈșNƊØM àŒ’đŸ’€đŸ€–đŸ‘Ÿ
OPá­„â˜…â±ŁÄŠÈșNƊØM àŒ’đŸ’€đŸ€–đŸ‘Ÿ - avatar
+ 2
And if u mean on the playground, u can't upload image as a file. Instead u have to use a link for images. Luckily there are free image hosting platforms out there.
22nd Aug 2025, 2:59 PM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
0
You can create a new "img" folder in your project folder on your PC and place a local image to your "img" folder. You should write the next line to your code in .html file: <img src="img/image-name.jpg"> Instead of "image-name.jpg" you should write the name of your image that you placed in the "img" folder.
22nd Aug 2025, 11:44 AM
Mila
Mila - avatar
0
For Sololearn, you can upload your image to imginn.com and it will give you the url. Then u can use: <img src="WHATEVER URL YOU GOT">
22nd Aug 2025, 3:57 PM
JusticeGreen
JusticeGreen - avatar