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 trialS S
1,079 Pointshow to add image here to the folder
inside the footer element I am adding <a> tag to get images recalled from the code is this what the question is or its asking about the physical copy of image folder to the workspace
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nick Pettit</title>
</head>
<body>
<header>
<a href="index.html">
<h1>Nick Pettit</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section>
<ul>
<li>
<img src="img/numbers-01.jpg" alt="">
</li>
<li>
<img src="img/numbers-02.jpg" alt="">
</li>
<li>
<img src="img/numbers-06.jpg" alt="">
</li>
</ul>
</section>
<footer>
<a img src="img/twitter-wrap.png" alt=""> </a>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
1 Answer
Tobias Helmrich
31,603 PointsHey there,
the way you added the image was correct, however you forgot to close your opening a tag and to open your img tag. So you have to nest your img tag inside of your anchor tag. Also, like Alexander already mentioned, you have to add the facebook-wrap.png the same way you added the Twitter logo and don't forget to give both an appropriate alt attribute.
This is a working example:
<footer>
<a><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
<a><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>
<p>© 2013 Nick Pettit.</p>
</footer>
I hope that helps! :)
Jason DeValadares
7,190 Pointsan anchor tag would actually be
<a href="#"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
But that's not needed here as the quiz states not to link to them yet. From your code above try
<footer>
<img src="img/twitter-wrap.png" alt="Twitter">
<p>© 2013 Nick Pettit.</p>
</footer>
Alexander Dolgan
5,208 PointsAlexander Dolgan
5,208 PointsHey, If I correctly understood the question, then you can use the image on the page as many times as you need, using single image file, that located in your image folder. (twitter-wrap.png in img folder) and in the challenge you need add alt text and another image facebook-wrap.png.