CSS Specificity

In the CSS Selectors lesson, you’ve seen that the same element can be selected in multiple ways. Also, in the CSS Cascade lesson you’ve learned that when more than one style rules are applied to an element then cascading takes place and specificity is one of the main factors that determines which style rules will be applied to that HTML element. In this lesson you’ll learn detail about specificity.

Continue reading CSS Specificity

CSS Comments

When you’ve completed coding an HTML web site, you’ll find the style sheet(s) has hundreds of lines, even not thousands. At that moment, you know which style rule does what; but, after few months you won’t remember. So, you need any kind of indications which will help you remind later about the functionalities of the style rules. Well, comments serve exactly that purpose and it works as a note for your codes. You can write comments inside your style sheet. Continue reading CSS Comments