How do you add an image to HTML

How do you add an image to HTML
0

#1

How do you add an image to HTML from a source like instagram, do you use the website URL or??


#2

i don’t know if you can use instagram pics but you generally work with < img src=“SOURCE” alt=“ALT_TEXT”> where SOURCE can either be local ex. /users/user/Desktop or a URL .


#3

So what would the code look like if i wanted to get the picture from my files?


#4

If the webpage is on the internet, you cannot use your local files. It needs to be uploaded to the hosting space or to a place that will host an image.

If the image is in the same folder as your html file, you use the image name in the src attribute. Otherwise yes, you use the URL path and the image name.