0
How can I add images to my website
I mean a local image from my file
4 Answers
+ 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!
+ 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.
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.
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">