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 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 :)