0
How can I add images to my website
I mean a local image from my file
7 Respostas
+ 1
Mada Isaac you can upload your pdf files to Dropbox but you can't use PDFs in html
+ 3
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!
+ 3
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.
+ 1
Which websites can Host pdf files
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 imgbb.com and it will give you the url. Then u can use:
<img src="WHATEVER URL YOU GOT">
0
Mada Isaac , I would like to give you a suggestion. In case you have uploaded the image in Dropbox, you might want to modify the link a bit, as follows:
Example image URL:-
"https://www.dropbox.com/scl/fi/9e78wx0d7we2vlawk7p29/1745509984685.jpg?rlkey=d3603pm9xqg455nxmb37qfql1&st=5byt2twh&dl=0 "
Modify this to:-
"https://www.dl.dropboxusercontent.com/scl/fi/9e78wx0d7we2vlawk7p29/1745509984685.jpg?rlkey=d3603pm9xqg455nxmb37qfql1&st=5byt2twh&dl=0 "
[Basically, I just changed "www.dropbox.com" to "www.dl.dropboxusercontent.com" keeping everything else unchanged.]
I don't know if this is standard, but it works quite well for me.
Hope this helps.
A gentle reminder: Kindly use the search bar before posting a question next time!
https://www.sololearn.com/discuss/2450551/?ref=app
https://www.sololearn.com/discuss/3329963/?ref=app
https://www.sololearn.com/discuss/3323000/?ref=app
https://www.sololearn.com/discuss/2456987/?ref=app