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

Smells Like Bakin' Intro Problem

As far as I can tell I have this written correctly but on the webpage it displays the headline with a line under it as though it were part of the Browse Our Cupcakes button.

    <div id="intro" class="grid_9">
     <h1>Opposites really do attract, especially in our kitchen!  We combine unexpected flavors that melt together to create ironically delicious desserts.</h1>
     <p><a href="#" class="btn">Browse Our Cupcakes</a></p>
    </div>

5 Answers

Do you have any unclosed anchor tags above it? Perhaps one of the navigation links?

That is exactly what I have. Do you have any CSS that might be causing it?

No it's been like that since I first did it the HTML before I even got to the CSS section. Doesn't make any sense to me! I'm using notepad++ I don't know if that is part of the reason...?

Alright! You got it! There was indeed one unclosed that I missed! Thanks!

No problem! Glad you found it!

Thank you thank you thank you. I had the same problem -was making me crazy! turns out all my nav tags were unclosed! good to know that any unclosed anchor tags will make all following text act like links until the next anchor closing tag. I wouldn't have guessed it and since all the nav links seemed to be doing what they were supposed to, I wasn't looking for errors there...