Selector for Css review
CSS selector
Simple selector :
id, class, element, * selector
Combined selector :
div p descendant selector, child selector >, adjacent sibling selector +, general sibling selector ~.
pseudo class selector
Anchor pseudo-class ----->a:link/visited/hover/active/:focus After the specified element is focused
: first-child;last-child;nth-child(n) lang pseudo-class ----- -->Specify the language to be used, and check the rookie for more
pseudo element
The :first-line/::first-letter pseudo-element sets the style of the first letter of the element, the first line. The ::before
pseudo-element can be used to insert some content before the content of the element. The ::after pseudo-element can be used to insert some content after the element content. ::selection Style after selection.
More check rookie
attribute selector
a[target] ,a[title~=hello], input[type=“text”]