Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialUnsubscribed User
2,597 PointsTry to type : src=".../img/logo.png" but still wrong
what is wrong ?
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="/img/logo.png" alt="Site logo">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>
3 Answers
Liam Clarke
19,938 PointsAlmost got it Felix
to go back one directory its 2 dots and a forward slash, not 3
../
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="../img/logo.png" alt="Site logo">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Portfolio</a></li>
</ul>
<h1 id="portfolio">My Portfolio</h1>
</body>
</html>
Ajay Prasannan
16,002 PointsYou're nearly there, but try two period characters, and that should make the browser look at the parent folder before diving into the img folder.
../img/logo.png
Unsubscribed User
2,597 PointsThanks for your answer Liam and Ajay. It is so helpfull.
urbfbfbf rbrbbd
30 Pointsurbfbfbf rbrbbd
30 Points