Welcome to the Treehouse Community
Looking to learn something new?
Aditya Raj715 Points
when adding photos other than what is there already in the project file, it doesnt show then why?
HTML and CSS
Zakk George4,550 Points
Because your document doesn't have a place for reference to find the photo. I'll give you a couple of ways you can get a photo to work.
-First- Have the photo in the same file tree as your project. For example, if your image (kitten.jpg) is in your project all you have to do is write:
-Second- Lets say you have that same photo in a folder solely for the images related to your project, (lets call it IMG), in the same folder. Then you have to specify the rout your computer should take to find the photo like this:
-Finally- This last method requires internet in order for the image to display, because you will be copying an images URL and using that as the source instead. Google Kittens, find the picture you want, right click it, and select: "Copy Image Address". After thats done. head back to the document and paste it into the "src" attribute like this:
Hope this helps and good luck!