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 How to Make a Website Beginning HTML and CSS Write an HTML Element

David Eaton
David Eaton
45 Points

Why do I keep getting error message stating to write only within the <h1> tag, preview shows my name clearly?

<h1> David <h1/>

continues to give me an error message that I need to write text only with the <h1> tag. Not sure why, for the above shows my name clearly in preview.

index.html
<h1>
  David
<h1/>
Nikki Bollman
Nikki Bollman
7,281 Points

Your closing tag has the backslash in the wrong place. It should be

<h1>
  David
</h1>

1 Answer

Steven Parker
Steven Parker
229,644 Points

Your end tag is not correct.

As Nikki illustrated, the end tag should be "</h1>". But the character that needs to be relocated is a slash.

FYI: A "backslash" looks like this :point_right: \ (and is not used in HTML tags).

Nikki Bollman
Nikki Bollman
7,281 Points

Oops, I was wondering if I was using the correct word. Guess I should've looked it up. Thanks!