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

What is wrong with this html code?

<br> 
<a href="http://au.cybergamer.com/">cybergamer.com</a> 
</body>
</br>


<p>
<h2 style="color:red;">Sound Wave Red League</h2>
<h2 style="color:blue;">Sound Wave Blue League</h2>
</p>

1 Answer

Looks like you have the closing body tag "</body>" randomly in the middle of your code. You should move it to the bottom of any body elements.

It also looks like you have header tags "<h2>" inside of a paragraph tag "<p>" which you should never have. Looks like in this case you can just remove the paragraph tag.

Another thing I noticed is that you tried to surround an achor element "<a>" with a break tag "<br>". Break tags are one line elements. They dont need a closing tag in HTML5. If you're on HTML4 or lower. You would have to use "<br />".