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 trialDaniel Holmes
2,765 Pointsneed the answer
what is the problem
">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>
<p>© 2013 Nick Pettit.</p>
<img src = "img/twitter-wrap.png"alt = "Twitter Logo"></a> <img src = "img/facebook- wrap.png"alt = "Facebook Logo"></a>
</footer>
</body>
2 Answers
Hunter G
6,612 PointsDaniel,
You need fix a few things. First, you need to include an anchor around your image link, you need to include the link to your social media sites when clicking on the images by using href inside of the anchor, and you need to remove the whitespace, or spacebar input before and after the = after src and alt.
Here's your code:
<img src = "img/twitter-wrap.png"alt = "Twitter Logo"></a> <img src = "img/facebook- wrap.png"alt = "Facebook Logo"></a>
Here's the correct code:
<a href="http://twitter.com"><img src="img/twitter-wrap.png" alt"Twitter Logo" class="social-icon"></a>
<a href="http://facebook.com"><img src="img/facebook-wrap.png" alt"Facebook Logo" class="social-icon"></a></a>
Ali Saif
14,567 PointsYour anchors which encloses the img src uses an incorrect syntax:
<a href="www.facebook.com"><img src="img/facebook-wrap.png" alt="facebook"/></a>
<a href="www.twitter.com"><img src="img/twitter-wrap.png" alt="twitter"/></a>
<p>© 2013 Nick Pettit.</p>
</footer>