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 triallagah rajan
1,741 Pointsat 1.43 sir,forgot ";" but get result unlike other programing languaged . so does css forgive for syntax errors
or it is not an syntax error;
1 Answer
andren
28,558 PointsIt's technically not a syntax error, though it could be considered a bad habit.
In CSS semicolons are used to separate declarations from each other within a rule, since the color declaration was the last on within the rule he was working in he does not really need to tell CSS to separate it from the next declaration, since there is no next declaration in that rule.
Leaving out the semicolon of the last declaration is a practice popular among some programmers since it technically saves some space, but it can cause issues since it's easy to forget to actually add the semicolon if you ever go back and add other declarations.
lagah rajan
1,741 Pointslagah rajan
1,741 Pointsthanku ,for your awesome eplanation;