Académique Documents
Professionnel Documents
Culture Documents
A property
h1 {
border: 1px;
}
A declaration
h1 {
border: 1px;
}
h1 {
border: 1px dotted red;
}
Declaration block
Keywords
Functional notation
As the W3C helpfully put it, "functional notation is used to denote colors, attributes,
and URIs in CSS3.
First, using hexadecimal:
blockquote {
background: #FF0000;
}
Second, using a keyword:
blockquote {
background: red;
}
Functional notation
10
Selectors
11
:first-child [p:first-child{color:blue;}]
Finds the first child element. [C2, F3.5, S3, IE9, O9.5, iOS3, A2]
last-of-type [p:last-of-type{color:blue;}]
Finds the last element of the given type. [C2, F3.5, S3, IE9, O9.5, iOS3,
A2]
CSS3 modularity
16
17
18