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

Is there a way you can duplicate the header tag in secession like that? OR was that just a copied and pasted code?

Just curious. In the video, he did something and it immeditly went from

h1

to

h1
h2
h3
h4
h5
h6

1 Answer

Steven Parker
Steven Parker
231,198 Points

You forgot to provide a link to the video, but it was most likely something previously prepared and held in the paste buffer.

Depending on the editor being used, there may be codes to produce sequences like that. For example, in an editor that supports "emmet" syntax, you could enter this: {h$}*6 and then typing a tab would generate the sequence shown above.