join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
css: casscading style sheets

CSS Basics w3c


intro | media-types | reset/setup
RULES:  css | cascading | @rules
SELECTORS: selectors | properties/values

@ Rules

At-rules are instructions which can be used for a variety of purposes.

@charset:
when a style is embedded within a page it shares the character encoding of that document. When the CSS is a separate document the @charset declaration can be placed at the top of the CSS. The User Agent can read the CSS without the @charset declaration but it must be used if the style sheet contains any non-ASll characters.

A CSS style sheet is a sequence of characters from the Universal Character Set (see [ISO10646]). For transmission and storage, these characters must be encoded by a character encoding that supports the set of characters available in US-ASCII (e.g., UTF-8, ISO 8859-x, SHIFT JIS, etc.).CSS style sheet representation - w3c

User Agents must at least support:
@charset "UTF-8";
When included it must be placed at the top of the CSS on the very first line, with no space before it otherwise the User Agent (browser, printer etc) will ignore it. Comments must not be placed before the Character Set.