Current Location : XHTML Area » Help » Terminology » CSS History

CSS History

PDF

What is CSS

Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including SVG and XUL. CSS can be used locally by the readers of web pages to define colors, fonts, layout, and other aspects of document presentation. It is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation (written in CSS).


This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.


CSS stylesheets are an immediate addition to HTML. CSS is a language to define format properties of HTML or XML tags. HTML has reached the end of it's shelf life and is not being developed further. XHTML is the new standard instead. XHTML reformulates HTML with XML syntax while at the same time getting rid of presentational markup. XHTML only contains content, presentation is the domain of a CSS stylesheet. This allows for different stylesheets for different output formats such as print, aural or small devices. Search machines on the other hand have an easier job if they are only presented with content markup.

CSS History

Like HTML, CSS is standardized by the W3 consortium. CSS is an open, independent and freely usable standard. As with HTML, a working group exists for CSS who concerns itself with development of the standard. This is being done in accordance with W3C rules.


CSS comes in different versions. CSS level 1 was released in 1996, and republished with corections in 1999. CSS level 2 appeared in 1998 and built on CSS level 1. CSS level 2 adds support for different output media. CSS 3 is currently in development and will be split up in modules.


The idea behind it was to seperate presentation and content of a web site. The advantage of this approach is that updates and changes to the presentation need only be applied once (to the stylesheet) to affect all pages. Especially large sites can achieve significant time savings. In order to enforce this separation of concerns, the W3C has deprecated the <font> tag in HTML 4. Newer (X)HTML versions will deprecate other tags in a similar vein.


New functionality in CSS2

CSS2 retains backward compatibility with CSS1 which means valid CSS1 stylesheets continue to work without changes. CSS2 adds support for different media types. Different stylesheets can target media such as printers, TVs, screen readers and so on. Furthermore, there is the addition of pseudo classes and a few new styling elements for tables, text, colors and positioning.


CSS is supported, to different degrees, by all browsers starting with version 4. Unfortunately, all browsers have implementation bugs, and no browser supports the full CSS2 specification yet. Many browsers allow you to override the provided stylesheet with your own.

Login

  • Stay Logged In

News RSS feed

Social Bookmarks

Save to slashdot    Add To Del.icio.us    Digg This    Fav This With Technorati    Fav This With yahoo    Fav This With google    Bookmark this site with Windows Live Favorites    Add to furl

Premium Adverts