equal
deleted
inserted
replaced
56 |
56 |
57 To change style of specific tag embedding into ``style`` attribute (style syntax |
57 To change style of specific tag embedding into ``style`` attribute (style syntax |
58 doesn't use selectors!):: |
58 doesn't use selectors!):: |
59 |
59 |
60 <b style="color: blue; font-family: ariel">Welcome!</b> |
60 <b style="color: blue; font-family: ariel">Welcome!</b> |
|
61 |
|
62 CSS encoding |
|
63 ============ |
|
64 |
|
65 ``@charset`` rule should be the first sequence in CSS document without preceding |
|
66 white spaces, should use double quotes and exactly one space between keyword and |
|
67 charset:: |
|
68 |
|
69 @charset "UTF-8"; |
|
70 |
|
71 UTF BOM have precedence over ``@charset``. |
|
72 |
|
73 Another source of encoding is HTTP header ``Content-Type`` that have highest |
|
74 precedence:: |
|
75 |
|
76 Content-Type: text/css; charset=utf-8 |
|
77 |
|
78 Using ``charset`` attribute on the ``link`` element is deprecated by HTML5. |
|
79 |
|
80 https://www.w3.org/International/questions/qa-css-charset.en |
|
81 Declaring character encodings in CSS. |
61 |
82 |
62 Selectors |
83 Selectors |
63 ========= |
84 ========= |
64 :: |
85 :: |
65 |
86 |