Next / Previous / Contents / TCC Help System / NM Tech homepage

3. Overall structure of a style sheet

To write a style sheet, use a text editor to create a file whose name ends in .css.

A style sheet is a sequence of statements. Each statement can be either:


Because HTML element names are case-insensitive, CSS stylesheets used to mark up HTML pages are also case-insensitive, so that for example element names "DIV" and "div" are considered equivalent.

However, because XML element names are case-sensitive, names in a CSS stylesheet associated with an XML file are also case-sensitive. So, for example, XML element names "castle" and "CASTLE" are not the same.