css memo

I always forget the difference between the grouping selector and the descendant selector.
grouping selector:
h1,h2 {…}

descendant selector:
h1 em {…}

child selector(like descendant selector but only selects the direct children):
h1 > em {…}

Pseudo-class:
a:visited {…}

Pseudo-element:
h1:after {…}

attribute selector:
[title] {…}

Comments are closed, but trackbacks and pingbacks are open.