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
james freyre
526 PointsIn my HTML code, </footer> is highlighted in red. So is the </body> </html> at the end. Any ideas why?
This is the "header" section of code. The closing </header> is in red but my code seems identical to that in the video. Is any of this incorrect? Thank you!
<header>
<a href="index.html" id="logo">
<h1>James Freyre</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>
1 Answer
Matthew Tran
16,343 PointsLooks like you have a typo in your code. It is in your anchor closing line after the designer title. You put <a/> instead of </a>. It'll be the third line in this code. (btw, if you want to put code syntax in forums on Team Treehouse, refer to the MARKDOWN CHEATSHEET link at the bottom of this page below the post input, but basically, add three ``` before your code and hit return. Everything after will appear as it does below:)
<header>
<a href="index.html" id="logo">
<h1>James Freyre</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>