Also referred to simply as a “type selector,” this selector must match one or more HTML elements of the same name
The class selector selects elements with a specific class attribute
An ID selector is declared using a hash symbol (#) preceding a string of characters. The string of characters is defined by the developer. This selector matches any HTML element that has an ID attribute with the same value as that of the selector, but minus the hash symbol
The universal selector selects all the elements on a page
The descendant selector (combinator) lets you combine two or more selectors so you can be more specific in your selection method
A selector that uses the child selector is similar to a selector that uses a descendant selector, except it only targets immediate child element
A selector that uses a general sibling combinator matches elements based on sibling relationships. That is to say, the selected elements are beside each other in the HTML.
The attribute selector targets elements based on the presence and/or value of HTML attributes, and is declared using square brackets
A pseudo-class uses a colon character to identify a pseudo-state that an element might be in
Using a formula (an + b). Description: a represents a cycle size, n is a counter (starts at 0), and b is an offset value.
CSS has a selector referred to as a pseudo-element
Specificity is the means by which a browser decides which CSS property values are the most relevant to an element and therefore will be applied
w3.org/TR/ css3-selectors/#specificity
When an !important rule is used on a style declaration, this declaration overrides any other declaration made in the CSS
Using !important is bad practice and should be avoided because it makes debugging more difficult by breaking the natural cascading in your stylesheets
Using !important is bad practice and should be avoided because it makes debugging more difficult by breaking the natural cascading in your stylesheet
The :not() sort-of-pseudo-class adds no specificity by itself, only what's inside the parens is added to specificity value.
Measure the specifity of the following selectors
http://htmlbook.ru/samcss Самоучитель CSS
http://css.yoksel.ru/css-selectors Css-селекторы, часть 1
http://css.yoksel.ru/css-selectors-part2 Css-селекторы, часть 2
http://css.yoksel.ru/specifity/ Сколько весят селекторы?
http://css.yoksel.ru/pages/css-selectors.html Таблица селекторов
http://htmlbook.ru/css/cat/pseudoclass Псевдоклассы
http://htmlbook.ru/css/cat/pseudoelement Псевдоэлементы
https://css-tricks.com/specifics-on-css-specificity Specifics on CSS Specificity
http://habrahabr.ru/post/137588 Взвешиваем селекторы CSS
http://cssspecificity.com CSS Specifity
https://events.yandex.ru/lib/talks/560 CSS: Селекторы, псевдоклассы. Специфичность и наследование
http://webhitech.ru/articles/selectors-performance-part-1 Селекторы и производительность