0
how to add image in html and css ?
i don't know
6 Respostas
+ 3
apparently you can't but via a Dropbox, you can insert the link in your code
+ 2
Pls complete the course you started before asking to avoid duplicate threads
https://www.sololearn.com/learn/HTML/1030/
https://www.sololearn.com/learn/CSS/1104/
+ 2
In HTML, you could use an img tag and set src attribute to the URL of your image.
In CSS, you can use the background-image property.
+ 1
Sateesh wrote, "How to upload the photo in solo learn app"
Response:
There are basically 2 options for adding images to a "web" code in Sololearn's Code Playground. None are as ideal or elegant as you probably want but they work.
1. Use base 64 encoding for all of the images data and embed that encoding in either HTML or CSS. I use a tool at: https://www.base64-image.de/ to quickly upload and get encodings and then paste them into the 'background-image' value in CSS or to the SRC attribute of an img element in HTML.
I used this technique in a couple of my web codes including:
- https://code.sololearn.com/WiH4n0rrvD1B/ for a little thumbnail at the end of the animation
- https://code.sololearn.com/Wj4ErOsPXhhk/#css for the edited image of the pastor
2. You can reference your image from another host. If you found the image on another site, you could use an absolute URL to it. If it isn't already publicly accessible, you could upload images to many places to get a working URL including facebook, Google Drive, pinterest. Just make sure you can access it without being logged into any accounts.
0
How to upload the photo in solo learn app
0
Thanks koder king I am understand this question answer