Monday, March 7, 2011

CSS Standards


Cascading Style Sheets (CSS) are there to define the look and feel of one or several (x)HTML documents. By using CSS we separate content from presentation. Anything that is visual should be achieved via CSS (granted the targeted browsers permits that).

CSS should reside in its own document and should only be mixed with HTML when absolutely necessary. Furthermore, CSS should enhance the current markup and not replace it.

Applying CSS to documents.

CSS can be applied to one or several documents in different ways:

1. Linked in the document head via the LINK element
2. Linked in the document head via a STYLE element and the @import directive
3. Added directly to the head via the STYLE element
4. Inline in the HTML element via the STYLE attribute

More At :