Please enable JavaScript.
Coggle requires JavaScript to display documents.
Selectors (Attribute selectors (a[attribute] (find a (with specific…
Selectors
Attribute selectors
match attribute value
a[attribute]
find a
with specific attribute
a[attribute=bl]
find a
with attribute value
space separated value
a[attrbiute~= value]
hyphenated value
a[attribute|=value]
tip
use for language only
Substring match
beginning
^=
end
$=
elsewhere
*=
usage
mail
telephone
Pseudo
Classes
not allways set
states
Hover
selected
needs interaction
Elements
not allways present
::
::before
add content
before element
::after
add content
after element
::first-letter
::firs-line
::selection
old convention
:
IE 8 support
Combinators
complex selector
Descendant
whitespace
form p
Child
form > p
immediate children
first level
Adjecent sibling
+
label + input
immediatly follows adjecent elemnt
General sibling
~
A ~ B
capture elements