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

Ashley Bergstrom
Ashley Bergstrom
45 Points

I typed my name inside the <h1> tag, why is it still incorrect?

I typed my name inside the <h1> tag, why is it still incorrect?

<h1> Ashley </h1>

index.html
<h1>
  Ashley
</h1>

1 Answer

Stamos Bolovinos
Stamos Bolovinos
4,320 Points

I tried to reproduce your error, but couldn't reproduce it. Your code is correct. Although it is not usual in html to add spaces to your code like in

<h1> Ashley </h1>

so more common you will see html typed like

<h1>Ashley</h1>

But, this is not an error and I also checked doing the excercise, in my case it validates as correct. Maybe you just want to try again.

Ashley Bergstrom
Ashley Bergstrom
45 Points

Thanks so much for your feedback! I appreciate it :)