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

Why do I have four tags marked in red?

I know it means there is something that's not closed properly somewhere, but I cannot figure it out. Anyone?

https://w.trhou.se/trwbixptsp

3 Answers

Your second <a> tag in your footer wasn't closed properly, you had <a/> instead of </a>. Also you was closing a div after your footer but there doesn't seem to be a corresponding opening div tag so delete that aswell. Here is your original code:

    <footer>
      <a href="http://twitter.com/olealsaker"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
      <a href="http://facebook.com/olealsaker"><img src="img/facebook-wrap.png" alt="Facebook Logo"><a/>
      <p>&copy; 2017 Ole Alsaker.</p>
    </footer>
    </div>  
  </body>
</html>

Here is the code without the errors:

    <footer>
      <a href="http://twitter.com/olealsaker"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
      <a href="http://facebook.com/olealsaker"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>
      <p>&copy; 2017 Ole Alsaker.</p>
    </footer>
  </body>
</html>

Hope this has helped :)

Great! Thanks for swift reply, Martin. That wrongly placed dash would have driven me insane.

No problem! Be prepared for many more infuriating and hard to find errors like that, although you do learn to spot them much quicker after a while :)

or slash rather :-)