Variations
CSS has various levels and profiles. Each level of CSS builds upon the last, typically adding new features and typically denoted as CSS1, CSS2, and CSS3. Profiles are typically a subset of one or more levels of CSS built for a particular device or user interface. Currently there are profiles for mobile devices, printers, and television sets. Profiles should not be confused with media types which were added in CSS2.
CSS 1
The first CSS specification to become an official W3C Recommendation is CSS level 1, published in December 1996.[5] Among its capabilities are support for:
- Font properties such as typeface and emphasis
- Color of text, backgrounds, and other elements
- Text attributes such as spacing between words, letters, and lines of text
- Alignment of text, images, tables and other elements
- Margin, border, padding, and positioning for most elements
- Unique identification and generic classification of groups of attributes
The W3C maintains the CSS1 Recommendation.[6]
CSS 2
CSS level 2 was developed by the W3C and published as a Recommendation in May 1998. A superset of CSS1, CSS2 includes a number of new capabilities like absolute, relative, and fixed positioning of elements and z-index, the concept of media types, support for aural style sheets and bidirectional text, and new font properties such as shadows. The W3C maintains the CSS2 Recommendation.[7]
CSS level 2 revision 1 or CSS 2.1 fixes errors in CSS2, removes poorly-supported features and adds already-implemented browser extensions to the specification. While it was a Candidate Recommendation for several months, on June 15, 2005 it was reverted to a working draft for further review.[8] It was returned to Candidate Recommendation status on 19 July 2007.
[edit] CSS 3
CSS level 3 is currently under development.[9] The W3C maintains a CSS3 progress report. CSS3 is modularized and will consist of several separate recommendations. The W3C CSS3 Roadmap provides a summary and introduction.[10] The CSS3 mark-up is several years younger and is an evolution of the CSS2 one. It is both more compact and richer in semantics. The mark-up in the published texts of CSS is also not exactly the same as the mark-up that the authors used when writing the text. The latter has abbreviations that are expanded automatically before a document is published. For example, the authors almost never create links. Instead, they include a tag or a special character that indicates the role of a word (a property name, a technical term, a bibliographic reference, etc.) and each such word is automatically linked to its definition.
Less typing means fewer errors and more time to concentrate on the contents. Also, because it is the computer that adds the links and much of the other mark-up, the final documents are more consistent. At the same time, the document the authors work on is still a complete HTML document that can be edited and viewed in any normal HTML tool. It just has fewer links and a little fewer colors than the final document. Such consistent documents have several advantages. For example, the table of content, the index and the list of properties are all created automatically. Also, various automatic checks can be performed before publishing a document, e.g.: are all properties that occur in the text also defined? are all grammars complete? are all examples valid? are all bibliographic references defined?[11]
Comments
Post a Comment