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 Build the Footer

Same broken image problem. same solution did not fix it. totally stumped...again...

Basically the exact same thing that happened before is happening again. I tried all of the things suggested including what fixed the problem last time (which was just a stupid syntax error on my part) but nothing will work. I am at the part of the program where I am embedding the twitter and facebook PNGs to the footer. Here is my code.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Jake Mautner | Filmmaker</title>
  </head>
  <body>
    <header>
    <a href="index.html">
    <h1>Jake Mautner</h1>
    <h2>Filmmaker</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>
        <a href="img/numbers-01.jpg">
          <img src="IMG/numbers-01.jpg" alt="">
          <p>the number one in a black box.</p>
        </a>
      </li>
      <li>
        <a href="img/numbers-02.jpg">
          <img src="IMG/numbers-02.jpg" alt="">
          <p>the number 2 in a black box.</p>
        </a>
      </li>
      <li>
        <a href="img/numbers-06.jpg">
          <img src="IMG/numbers-06.jpg" alt="">
          <p>the number 6 in a black box.</p>
        </a>
      </li>
      <li>
        <a href="img/numbers-09.jpg">
          <img src="IMG/numbers-09.jpg" alt="">
          <p>the number 9 in a black box.</p>
        </a>
      </li>
      <li>
        <a href="img/numbers-12.jpg">
          <img src="IMG/numbers-12.jpg" alt="">
          <p>the number 12 in a black box.</p>
        </a>
      </li>
    </ul>
    </section>
    <footer>
      <img src="img/twitter-wrap.png" alt="Twitter Logo">
      <p>&copy; 2104 Jake Mautner.</p>
    </footer>
  </body>
</html>

Thanks.

2 Answers

Bill Hinostroza
Bill Hinostroza
19,273 Points

Try lowercasing your img when your declaring it because there are lowercase and upcase img in your code. I don't know if that should conflict but also check if your current page is in the home directory.

If not try html <img src="../img/numbers-09.jpg"/>

Caroline Hagan
Caroline Hagan
12,612 Points

Uppercase or lowercase shouldn't really matter.

I'm assuming you're taking the 'How to Make A Website" course. Did you download the twitter and Facebook png's then drag them into your workspace? If so, make sure they are linked to the right folder (img).

When I look at my code from the course, the footer also contains an anchor element with an href. The href contains the site address you want the png's to link to:

Example:

<footer>

     <a href="http://www.YourTwitterLinkHere"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> 

The class "social-icon" (.social-icon) is then used in your CSS to set the width, height, etc.

Also, here is a helpful link on how to post your code in the Treehouse forums. It's easier to read than cutting and pasting.

https://teamtreehouse.com/forum/posting-code-to-the-forum