0
I am creating a code that needs an image but i dont now how to get the source pls help
2 Answers
+ 2
Use <a = href "https//add link " </a> add your link from gallery in this ". " Ok
+ 1
There are 2 types of path:
- relative (already on your pc/phone)
- absolute (somewhere on internet so we use URL to link them)
On sololearn we can only use absolute path.
So if you try to link image here on sololearn, you need to upload it on internet.
You can use cloud like dropbox for it.
Please check codes bellow to learn how.
But if you try to link image on your pc, you need to learn how relative path works.
Best is to create project folder, and place all your project files and images inside it.
Here is link to learn how to access images from your pc: https://www.grainge.org/pages/authoring/relative_paths/relative_paths.htm
for image we use
<img src="path" />
where path is your image source
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app