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
Ole Alsaker
2,106 PointsWhy 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?
3 Answers
Martin Ellis
6,724 PointsYour 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>© 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>© 2017 Ole Alsaker.</p>
</footer>
</body>
</html>
Hope this has helped :)
Ole Alsaker
2,106 PointsGreat! Thanks for swift reply, Martin. That wrongly placed dash would have driven me insane.
Martin Ellis
6,724 PointsNo 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 :)
Ole Alsaker
2,106 Pointsor slash rather :-)