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 trialJohn Conover
Courses Plus Student 205 PointsA very newbie question about brackets and curly braces.
Why are Curly Braces used in the CSS and Brackets are used in the HTML? Are Curly Braces needed for design edits? or is it just a way to organize content?
I noticed that my color stays blue if I use brackets instead of Curly Braces.
3 Answers
Chris Dziewa
17,781 PointsBoth HTML and CSS are languages of their own. The brackets and curly braces here act as containers for grouped content. You will also notice that some languages use semicolons to end lines of code. All of this is dependent on the syntax
of the language. In HTML you have a set of tags-opening and closing. Anything inside one of these tags is looked at as being contained within the element. In CSS the syntax tells us we need at least one selector
(corresponds to an element in the HTML) followed by a pair of brackets with the properties you would like to set on that element. Language syntax will become clearer the more you use it.
Carman A
7,672 PointsYou have potential! The first step to becoming great in something is admitting you are a newb. The second is asking question's
John Conover
Courses Plus Student 205 PointsThanks Chris
Chris Dziewa
17,781 PointsAnytime John!