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 Structuring Your Content Grouping Content with <main> and <div>

4 Answers

Antony .
Antony .
2,824 Points

This is how your html structure is supposed to look like

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>

  </body>
</html>
Antony .
Antony .
2,824 Points

Sorry I miss interpreted your question. I'm assuming you meant how to close main tags? If so you close them with how they were initially opened but you put a forward slash symbol before you write the name of the tag

<main>

</main>
Shukur Mukhtarov
seal-mask
.a{fill-rule:evenodd;}techdegree
Shukur Mukhtarov
Front End Web Development Techdegree Student 660 Points

how to centralize tags under body or main tags. for example i hear command folowed brackets. after this command html tags become more structured

Antony .
Antony .
2,824 Points

Ah okay, so basically once you've selected multiple lines of code you can press and hold CTRL + } together to indent your code forward, and to reverse the changes press and hold CTRL + z

If you are on mac the same method applies, the only thing that changes is that CTRL is equivalent to CMD