Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Matt Crepeau
Matt Crepeau
2,076 Points

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

Tricia Martin
Tricia Martin
19,604 Points

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

Tricia Martin
Tricia Martin
19,604 Points

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

Matt Crepeau
Matt Crepeau
2,076 Points

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...?

Matt Crepeau
Matt Crepeau
2,076 Points

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

Tricia Martin
Tricia Martin
19,604 Points

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...