Вы находитесь на странице: 1из 3

CSS

.class

.myclass

class="myclass".

#id

#main

id="main".

span

<span>.

div,span

<div>
<span>.

div span

<span>
<div>.

>

div>span

<span>,
<div>.

div+p

<p>,

<div>.

[]

[title]

"title".

[=]

[title=cost]

title="cost".

[~=] [title~=cost]

title,
cost.

[|=] [lang|=ru]

lang,
"ru".

:link

a:link

:visited

a:visited

:active

a:active

:hover

a:hover

:focus

input:focus

input,
.

::first-letter

p::first-letter


<p>.

::first-line

p::first-line


<p>.

:first-child

p:first-child

<p>,

.

::before

p::before


<p>.

::after

p::after


<p>.

:lang()

p:lang(ru)

<p>
lang,
"ru".

1~2 p~ol

<ol>,
<p>.

[^=] a[src^="https"]

<a>
src,
"https".

[$=] a[src$=".png"]

<a>
src,
".png".

<a>
[*=] a[src*="puzzleweb"] src,
"puzzleweb".
:first-of-type

p:first-of-type

<p>,
<p>
.

:last-of-type

p:last-of-type

<p>,
<p>
.

:only-of-type

p:only-of-type

<p>,
<p>
.

p:only-child

<p>,


.

p:nth-child(2)

<p>,

.

:nth-last-child(n)

p:nth-last-child(2)

<p>,

,
.

:nth-of-type(n)

p:nth-of-type(2)

<p>,

<p> .

:nth-last-of-type(n)

<p>,

p:nth-last-of-type(2) <p> ,

.

:last-child

p:last-child

<p>,

.

:root

:root

:empty

p:empty

<p>,

( ).

:target

:target

:only-child

:nth-child(n)

.
:enabled

input:enabled


<input>.

:disabled

input:disabled


<input>.

:checked

input:checked

<input>,
.

:not()

:not(p)

,
<p>.

::selection

::selection

,
.

Оценить