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 Build a Simple Website Text Editors and HTML Creating Structure

Andreaus Perkins
Andreaus Perkins
14,402 Points

H1 Header Appearing as Hyperlink [solved]

Can anyone figure out why my header is showing up like a link (blue and underlined)? There's snippet of the code below:

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

4 Answers

Do you have a CSS attached? Can you post that here if you do?

Depending on whether this like link text is clickable or not, check the CSS properties styling the <h1> tag to appear as blue and underlined. If they exist, remove the CSS styles and refresh the page. Perform a similar clean on the id="intro" in the CSS file (or section of the code). If anything like a link (blue and underlined) should be the "Browse Our Cupcakes" text.

Just a hunch but is there an open anchor tag preceding the h1?

Where does the link go to? Ctrl+f to find the link destination in your code...

Andreaus Perkins
Andreaus Perkins
14,402 Points

Hey guys. I ended up fixing the issue shortly after posting the question, though I've forgotten what the issue was. Thanks for the responses though.