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 Beginning HTML and CSS Add Style to the Page

Bogdan Filippov
Bogdan Filippov
1,019 Points

Nothing changes when I set new number for spaces

Completely nothing! Also can't understand what TAB SIZES for ?

1 Answer

Steven Parker
Steven Parker
231,269 Points

Both "Tab Size" and "Spaces" adjust the depth of the indent when you hit the tab key.

The difference between them is that when "Tab Size" is set, an actual tab character is stored in the file, and when "Spaces" is set, a number of spaces is stored instead.

In either case, the difference will only be visible in the code. There will be no difference in the preview.

Bogdan Filippov
Bogdan Filippov
1,019 Points

Steve, I'm not native speaker and what you wrote "The difference between them is that when "Tab Size" is set, an actual tab character is stored in the file, and when "Spaces" is set, a number of spaces is stored instead." not easy to understand even with translator. Can you please explain more simpler or provide me with link where everything is fully explained what is "spaces" and "tab sizes" for?