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 trialMark Sims
2,637 PointsPlease tell me what I'm doing wrong? <img src="../logo.png/img" alt="Site logo">
Haven't been able to figure out what I'm doing wrong with this challenge. Can someone give me the answer so that I can see what it is that I've done wrong?
<!DOCTYPE html>
<html>
<head>
<title>Portfolio Page</title>
</head>
<body>
<img src="../logo.png/img" 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>
2 Answers
matthew glen
14,153 PointsHello, Your nearly there, you need the name of the folder in which the image is stored (img) to come before the your img file (logo.png) so it should look like this, <img src="../img/logo.png" alt="Site logo">.
Jon Tang
6,518 PointsDo you have a img folder with logo.png in it? If so, i think its suppose to be ../img/logo.png instead of ../logo.png/img.
Mark Sims
2,637 PointsMark Sims
2,637 PointsThanks for your help. I have a clearer understanding of the challenge and the answer now. I won't make the same mistake again.