0

Images in HTML

How do I add an image that I have on my computer into a website I am writing?

20th Jan 2017, 12:18 PM
Matthew Bonner
3 odpowiedzi
+ 2
use the IMG tag and the SRC attribute to add it the value for the SRC attribute is the path to the file and the file name and extension
20th Jan 2017, 12:20 PM
Sanchit Pandey
Sanchit Pandey - avatar
0
For example, if you have a photo named "tree.jpg" in the same folder as the HTML file, your code should look like this... So it should be in the same folder of the HTML file. OK, I get that, but would I use the directory of the file in place of the URL?
20th Jan 2017, 12:21 PM
Matthew Bonner
0
OK, that's what I was thinking it was. Thanks!
20th Jan 2017, 3:56 PM
Matthew Bonner