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 trial

HTML How to Make a Website Creating HTML Content Add Social Media Links

ashvitha venkatesh kumar
ashvitha venkatesh kumar
3,909 Points

Did you add the image for Twitter(img/twitter-wrap.png)?

<img src=“img/twitter-wrap.png” alt=“Twitter Logo”> <img src=“img/facebook-wrap.png” alt=“Facebook Logo”>

index.html
<!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>
      <img src=“img/twitter-wrap.png” alt=“Twitter Logo> 
      <img src=“img/facebook-wrap.png” alt=“Facebook Logo> 
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

4 Answers

Roy Penrod
Roy Penrod
19,810 Points

That's weird. I guess it's picky about the order you place them in. I tested it both ways and they accept it with the Facebook icon first, but they won't accept it with the Twitter icon first. It must have something to do with the way they coded it.

I verified this code works:

<footer>
      <img src="img/facebook-wrap.png" alt="Facebook Logo">
      <img src="img/twitter-wrap.png" alt="Twitter Logo">
      <p>&copy; 2013 Nick Pettit.</p>
</footer>
ashvitha venkatesh kumar
ashvitha venkatesh kumar
3,909 Points

Thats so wierd...I tried your code and it worked...Thanks a lot Roy.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi ashvitha and Roy.

The problem isn't actually with the order. The Parser doesn't care which order they are in. The problem is lying in you quotation marks. Ashvitha, if you look closely at your code, you will notice that up until the problem area, you have normal quotes, but once you get to the Twitter/Facebook, you now have 'fancy' quotes (I'm assuming you cut and paste from a word processor or something similar). This will mess up the code, because the compiler/parser sees two different types of quote marks.

If you look at the code posted in your question, you will see that Facebook is pink in color, but Logo is green. This is because the compiler is reading a closing quote, even though one doesn't exist. Unfortunately, just replacing the quotes doesn't always work. Usually you need to refresh/restart the challenge and manually type in the code. This is why Roy's code worked. It uses the proper quotes and when you copied it, you pasted it into a fresh version of the challenge.

If you are using a Word Processor, you should go to settings and disable 'fancy' quotes.

Keep Coding both of You! :)

Roy Penrod
Roy Penrod
19,810 Points

Ah, gotcha. I'll keep an eye out for that in the future. Thanks for pointing it out, Jason.