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

Help with img tag

Getting message: make sure you include image tag that displays “img/numbers-01.jpeg”

<!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.jpeg” alt=””></li> <li><img src=”img/numbers-02.jpeg” alt=””></li> <li><img src=”img/numbers-06.jpeg” alt=””></li> </ul> </section> <footer> <p>© 2013 Nick Pettit.</p> </footer> </body> </html>

5 Answers

Hi Arlene,

It looks like your double quotes are actually special characters within that unordered list. Notice how in your markup they look starkly different from the standard double quotes used in the head, logo, and navigation. Try deleting those special double quotes and just insert standard double quotes from your keyboard. Copying and pasting from certain editors such as Microsoft Word or LibreOffice Writer etc. can cause special double quotes characters to appear, because they use fancier versions of double quotes for text. :)

EDIT: Also, the pictures should have an extension of "jpg" not "jpeg"

     <!-- Special double quotes removed -->
     <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>
Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Ah... cut and paste! That makes sense. Lol.

Thank you Marcus! I've seen these 'fancy' quotes tripping people up in the forum a few times, and I've been racking my brain as to HOW sometimes they're there and sometimes they're not... :)

Exactly! haha I only know this because when I first started out I was trying to use LibreOffice Writer to write the JavaScript and then pasting it into the challenges and getting that error! It was frustrating because I knew the code was correct, but then I looked closely at the double quotes and noticed that they looked really weird haha

you guys are awesome

I did that and it still does not work. I'm still getting the same error. <li>><img src="img/numbers-01.jpeg" alt=""></li> <li>><img src="img/numbers-02.jpeg" alt=""></li> <li>><img src="img/numbers-06.jpeg" alt=""></li>

Can you please post the URL of the challenge you are currently on?

Oh I see the problem. It was the quotes and that you have "jpeg" for an extension instead of "jpg" for each picture. I updated my original answer to reflect this as well. The challenge wants you to put "img/numbers-01.jpg" etc.

Thank you Marcus. That made me chuckle, so easy I couldn't even see it.

Haha :P It's always the little things! But as Elsa would say, "Let it gooo...let it goooooo!" My baby sister has watched that movie a thousand times so that's how I know that! haha Happy Coding, Arlene!