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 HTML First Create the Content Containers

Create Content of Containers

How do I put the H1 inside the header? In the video I see that the h1 is higlighted but no instructions are given on how to put the h1 inside the header.

Myroslav Tkachenko
Myroslav Tkachenko
10,581 Points

I suppose all you need is to nest a h1 element inside a header element:

<header>
  <h1>Level 1 Heading</h1>
</header>

2 Answers

Holt Hunter
Holt Hunter
4,629 Points

He just highlighted the <h1>Nick Pettit</h1> and then used the cut command which deletes whatever is highlighted and copies it at the same time. Then he just pasted it in between the <header> tags.

<header>
    <h1>Nick Pettit</h1>
</header>

The cut command shortcut for Mac is: Command + X. The paste shortcut for Mac is: Command + V. If you are on Windows then instead of using the Command just use the Control key.

Hope this helps!

Sean T. Unwin
Sean T. Unwin
28,690 Points

This is shown in the first 20 seconds of the video - from about 0:10 to :20.

Nick cuts the h1 and pastes it inside the header tag.