enter image description hereSo I wrote this email to my professor:
Hello Professor, I was under the impression anytime a file was not in the same folder as the file that we are coding (index.html) and in which we need to add a path for an image, that that would be using ../ rather than ./
However, upon completing this assignment, you and I have code that both work:
MY CODE:
Cat:
YOUR CODE:
Cat:
Both work, but according to what you taught us, we are supposed to be using ./ as well as the name of the folder (You don’t mention this in your lesson) in which the files is located as shown by your solution, which only named one folder. Can you please clarify. This information was given to us at minute 7:11 in the video. But in the files you gave us, cat.png is not the same folder as index.html, which means we are supposed to be using ../Folder0/Folder3 because cat.png is in Folder3, and Folder3 is in Folder0. Both work clearly, so let me know your thoughts.
As well, you didn’t mention that when we are using ./ that we are supposed to name the current directory/folder in which the file is directly located in.
I am sending the image of the code I wrote compared to what the instructor wrote as well, I am sending the image of the file paths so you get an idea. We both got it right. Both codes work, my question is in regards to the proper use of this code.
[[enter image description here](https://i.ssenter image description heretatic.net/656ZuLdB.png)](https://i.sstatic.net/Mxx1AxpB.png)
Isaac is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.