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 Creating HTML Content Add Image Gallery Content

Indenting

Why do we need to indent the elements and tags? is it for organizing?

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

It's all about readability and organization. Indentation allows to see the children and parents much easier. Or, in the cases of other languages, what is nested and part of a class, method, function, etc.

Proper indentation is very important in programming. :)

:dizzy:

Hi Jason, since your on can you take a look at my Sass question? It's around here somewhere.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

I actually did have a look, but I haven't done Frontend code in a long time, and only took the Basics in Sass. I'm more of a Backend programmer. Tagging Hampton Catlin ... maybe he's around and can help.

Sorry I couldn't be more help.

Thanks Jason.

I do believe you are correct. Organizing, makes it easier to follow and see how things relate to one another.

Thanks guys