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

Challenge for adding social media to the footer: I entered code as shown in video but it keeps giving me an error.

The following is the what my code looks like:

<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>

This is what I had in my notes from the videos. What am I doing wrong?

Stone Preston
Stone Preston
42,016 Points

Ive formatted your HTML code so it will show up in the forum. See the animation below to see how to format code in the forum:

code

2 Answers

Stone Preston
Stone Preston
42,016 Points

assuming you are on task 1.

your quotation mark characters in the src and alt attributes may not be recognized by the challenge engine. your code is correct, your quotes are just not the normal quotes marks. the quotes you used are referred to as “smart quotes,” “curly quotes,” “curled quotes,” “curling quotes,” or “curved quotes”.

are you copying and pasting the code in from an editor? if so which editor?

below is the code with the correct quotes:

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

below is the quotation mark character I used:

"

and here is the one you used initially:

notice that they look a bit different.

Thanks Stone! I was copying and pasting from my notes, when I typed my code directly the quotation marks did appear different and it worked.