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

Robert Cable
Robert Cable
2,945 Points

Why are my tags open

I noticed a lot of my tags such as </head> are highlighted red in my workspace, im confused as i dont remember them being this way last time i logged on. Anyways here is a copy of my code hopefully i can just get a straighforward answer, not looking to read between the lines! thanks

    <div id="wrapper">
      <section>
        <ul>
          <li>
            <a href="img/numbers-01.jpg">
              <img src="img/numbers-01.jpg" alt="">
              <p>Experimentation</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-02.jpg">
              <img src="img/numbers-02.jpg" alt="">
              <p>Blending modes</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-06.jpg">
              <img src="img/numbers-06.jpg" alt="">
              <p>Drips created using Photoshop brushes</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-09.jpg">
              <img src="img/numbers-09.jpg" alt="">
              <p>Wanker</p>
              </a>
          </li>
          <li>
            <a href="img/numbers-12.jpg">
              <img src="img/numbers-12.jpg" alt="">
              <p>Under Construction</p>
              </a>
          </li>
        </ul>
      </section>
      <footer>
        <a href="http://twitter.com/robhcable"><img src="img/twitter-wrap.png"alt="Twitter logo"></a>
        <a href="http://facebook.com/robcable"><img src="img/facebook-wrap.png"alt="Facebook logo"></a>

      <p>&copy;  2014 Rob Cable.</p>
    </footer>
   </div>
  </body>
</html>```

Hi Robert,

Is this the whole file? If not could you post the rest of the code please and well see if we can spot any issues?

-Rich

4 Answers

Hi Robert,

If this is everything inside your body tags you'll need to add a closing div on the bottom line (which I've commented in the code below to demonstrate):

 <footer>
        <a href="http://twitter.com/robhcable"><img src="img/twitter-wrap.png"alt="Twitter logo"></a>
        <a href="http://facebook.com/robcable"><img src="img/facebook-wrap.png"alt="Facebook logo"></a>

      <p>&copy;  2014 Rob Cable.</p>
    </footer>
</div> <!-- This is the closing div for the wrapper -->

If it helps, at around the 5 minute mark this is the video that explains where the div tags are placed.

If this isn't the whole code could you please re-post and we'll take another look?

Thanks

-Rich

Herb Bresnan
Herb Bresnan
10,658 Points

It looks like you are missing a closing div after your closing section.

Robert Cable
Robert Cable
2,945 Points

where exactly and what would that look like? im a beginner!

Herb Bresnan
Herb Bresnan
10,658 Points

for some reason the tags are not showing up in this forum. Toward the bottom you need a closing div tag between your closing section tag and opening footer tag.

Juliana Madrone
Juliana Madrone
8,552 Points

Hi, From what you posted, you are missing the closing div tag, which might make a lot of the other tags get highlighted red even though it is just the one problem tag you are missing. </div> Hope that helps

I don't see your div tag closed anywhere