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

General Discussion

M Angele U. GASANA
M Angele U. GASANA
5,500 Points

HTML and CSS

Have realized while coding that every small detail matters, for example spacing between HTML tags or CSS rules, is there any special explanation or rule about spacing between html tags or CSS rules, so far I've been taking reference from the teacher but I am curious to know (just like it is important to add curly braces after each new rule started)

1 Answer

Piotr Manczak
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Piotr Manczak
Front End Web Development Techdegree Graduate 28,940 Points

Whitespace makes a difference in the rendering of inline elements, but everything beyond a single one is always reduced to one whitespace. This means, unless you use the tag <pre> , five white spaces get rendered just the same as a tab or fifty line breaks.