Please use the menu to the left to read more about how Cascading style sheets are used. Css classes will tell you how to make
classes in css and use certain formating in certain areas of your scriptfiles, Css tags will give you the most common tags used,
Standalone tells how you will be able to put css into a single file and controll all the pages on your site. Into html-files will
tell you how to put code in top of html files (or any scriping file at all). Finaly, Into html-tags will tell you how to put css
directly into your html-code.
Cascading Style Sheets 1 (CSS1) became a W3C Recommendation in December 1996. It describes the CSS language as a simple visual formatting model and is a simple style sheet mechanism that allows authors to attach style to HTML documents. The CSS1 language is human readable like most others scripting languages used on the web. Please note that css is used together with html for user output and controlling the layout of html-tags. This means that you may use css with any scripting language possible. No mather if you use server side scripting or client side scripting html is used for user output. If you are not into the different parts of the html-document please read the html-part of my tutorial. No mather scriping language used html is used for user output (displays whatever the user will see). When using any scriping language it it still normaly to talk about a html document withing this sciptfile, the html document within this scriptfile is whatever that will be displayed to the user.
Cascading Style Sheets 2 (CSS2) became a W3C Recommendation in May 1998. It builds on CSS1 and adds support for media- specific style sheets (e.g. printers and aural devices), downloadable fonts, element positioning and tables. By separating the presentation style of documents from the content of documents, CSS2 simplifies Web authoring and site maintenance. CSS2 builds on CSS1 and, with very few exceptions, all valid CSS1 style sheets are valid CSS2 style sheets. CSS2 supports media-specific style sheets so that authors may tailor the presentation of their documents to visual browsers, aural devices, printers, braille devices, handheld devices, etc. This specification also supports content positioning, downloadable fonts, table layout, features for internationalization, automatic counters and numbering, and some properties related to user interface.
Please note that CSS is used within html. As you problaby knows html is used for user output. This is either if you have a normal html-file or using any kind of server side scripting language like php, asp and jsp.
No mather if you put css-tags into a standalone file, in the head of a html-file or in a html-tag like we do here they are seperated in the same way. You simply seperate the different css-tags by a semicolon.