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

I dont know how to create an h1 element help?

Help!

5 Answers

You just put h1

h1<what ever>

this is an h1 element:

   <h1>This is code!</h1>

Simply insert your text between the tags, just like this!

<h1>My header</h1>

(Without the asterisks ofcourse)

Hi , every element need a starting point and an ending point .
When you want to create and element e.g h1 you need to open it and close it :

< h1 > Yout text here </ h1 >

You close it with the dash </backwards/>

You do this in every html element .

If you ever get stuck to create and element , remember to open it with e.g i want to great an paragraph < p > Paragrapch text < / p > .

If you want to add some sort of functions or classes , you make it inside so if you want to add a class you put it like that

< p class = " someClass" > Some paragraph < / p >

Hope this helps you to understand more.

Don't use the spaces , its just for the purpose so the code don't get hidden by the forum.