Welcome to the Treehouse Community
Looking to learn something new?
I do not have a way of saving the other files. Can anyone assist me with how to open files on this exercise?
<!DOCTYPE html> <html> <head> <title>Portfolio Page</title> </head> <body> <img src=../img.png></img> <ul> <li><a href="">Home</a></li> <li><a href="">Portfolio</a></li> </ul> <h1 id="portfolio">My Portfolio</h1> </body> </html>
Brendan WhitingFront End Web Development Techdegree Graduate 84,696 Points
In Challenge Task 1 of 3 they give us this instruction: "Set the <img> element's src attribute to a path that goes one level out of the current folder and inside a folder named img."
This is what the
img element looks like now:
<img src="logo.png" alt="Site logo">
So right now this is going to show an img element, and the source of that img element is at this path: "logo.png". This means they're pointing to a file "logo.png" that lives in the same folder as the index.html file we're looking at right now.
But the challenge is saying that image isn't actually there. So if this page was rendered, it might not show the right image. They want us to look one folder above the current folder, in another folder called "img". So we need to change the path to reflect this: : "../img/logo.png". The "../" here means one folder up. So the new img element would look like this:
<img src="../img/logo.png" alt="Site logo">
We can't actually look at the folder structure of these files. We just have to take their word for it that these files and folders are how they say they are.
Thank you so much sir, that was a Great help!