General Syntax and
Nomenclature
Chapter 3
At-rules Reference
At-rules are instructions or directives to the CSS parser. They can be used for a
variety of purposes.
The @charset (p. 48) at-rule can be used to specify the character encoding of an
external style sheet. It must appear before anything else in the file.
The @import (p. 49) at-rule allows us to import one style sheet into another. All
@import at-rules must appear before any rules.
The @media (p. 51) at-rule lets us target rules to the media types we specify.
The @page (p. 52) at-rule can be used to specify margins for paged media. You can
set different margins for left- and right-hand pages when you??™re printing double-sided
pages, as well as for the first page.
The @font-face (p. 54) at-rule allows us to specify custom fonts.
The @namespace (p. 55) at-rule in CSS3 lets us declare an XML namespace, as well
as an optional prefix with which that namespace can be specified.
At-rules Reference
The Ultimate CSS Reference 48
@charset
@charset "encoding";
We use the @charset at-rule to specify
the character encoding of an external
style sheet.
Pages:
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100