+ 2
Where all can you "pull" (source) an image from; meaning, does it have to be a URL, or can it be a file (is that what is meant by "relative" and "absolute")? Also, how do you "format" the image/where do you put it so it can be accessed by the code and used on the webpage?
For example, if I take a picture and upload it to my computer, what do I do then to make that image available to encode and display online in the finished product?
7 Antworten
+ 1
you use it in the CSS file.. but it have to be in same folder with the HTML file on your pc.. then use the URL() it will be shown in the browser.
+ 1
maybe u can try to copy ur image to same new folder with the html code then u write this code
<img src="newfoldername/nameofthepic.jpg">
idk if it's work cause i'm a beginner and i try using my way so idk if it's same or not w/ the code must to be
+ 1
Relative means something like <img src="panda.jpg">. Absolute is something like <http://mysite.com/panda.jpg>.
If you are using a local image file (not hosted on the Web) then it needs to be in the same folder as your HTML file, or in a subfolder.
0
Good Question. Me too Waiting for answers.
0
muhammet is true