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

HTML basics <h1></h1> how to move the closing tag to end of text.

I am on HTML basics and when I create the opening <h1> tag and copy the closing tag I cannot tell how he gets the closing tag to the end of the texts. Could you provide 'key' instruction? I have tried tab and enter. Thanks for your help!

Not too sure if this is what you're looking for

Go to the end of the current line
Windows: End

MacOS: Cmd + Right Arrow

here's a link to Ref.

https://www.w3schools.com/tags/ref_keyboardshortcuts.asp

Stanley Nkosi
Stanley Nkosi
4,233 Points

Hi Michelle, Generally you can remove the end tag by using the backspace button. Then write your heading and place your end tag at the end of the heading. E.g. <h1> The Story of my Life </h1> Happy Coding.

Stefan Piatkov
Stefan Piatkov
14,312 Points

If you are using workspaces you will have to type it in manually. But if you use your own text editor such as Sublime Text or Visual Studio Code, it will automatically generate those closing tags for you.

Hope that helps.

2 Answers

Stanley Nkosi
Stanley Nkosi
4,233 Points

Hi Stefan, Thank you very much about new concepts that I did not know. I had to check Text Editor and I got powerful revelations like Text Editor includes Sublime Text or Visual Studio. I must admit,this is high staff for Technocrats.Its not for fresh or new students of Coding. Happy Coding.

Michelle, without knowing what application you're using to create your coding, it's difficult to answer your question. See Nate, Stanley's or Stefan's comments. All work well depending on the app.