Welcome to the Treehouse Community
Looking to learn something new?
How to insert images?
I created a folder in my desktop named img.I inserted a file named logo.gif,then I typed on my editor this<img search="img/logo.gif" alt="Smells Like Bakin"> but it doesn't work. What can I do?
Kevin Korte28,109 Points
A big problem many people have is getting the correct source path, whether it be an absolute link path, or a relative link path. I try to use the relative link path as often as possible.
If you html file is just outside your img folder, with your image inside that, you could have a relative link path that might look like
An absolute path on your computer might look like:
as an example of a PC desktop. This is very specific to your machine and folder structure, so it's more prone to break the image path.
you can do that by this code
<img src="img/logo.gif" alt="My Website Logo"/>
Thank you very much people!