Sunday, March 7, 2010

CSS

Cascading Style Sheets (CSS): It is nothing but a style sheet language (a computer language that is used for describing the presentation of structured document i.e., “well formed”) used to describe the look & the format i.e., in technical language “Presentation semantics” of a document in markup language.

CSS is a simple syntax (principles & rules that are used for constructing sentences in natural language.) and uses number of English keywords to specify the various names of various style properties.

CSS is designed so that the separation of document content that is been written in HTML or markup language for document presentation, including all the elements of layout, color & fonts, this helps in improving the content accessibility, provide more control on presentation characteristics, sharing multiple pages sharing format & reduce complexity & repetition of structural content.

Situation before CSS:
Before CSS( Cascading Style Sheets ) came into picture, approximately all the presentational attributes of HTML documents were within HTML markup, all the elements such as, all font colors, background styles, element alignments, borders and sizes had to be explicitly described, sometimes has to repeatedly written in the HTML. CSS allows authors to move much of that information to a separate style sheet resulting in considerably simpler HTML markup.

Sources:
There are different sources of providing CSS. It can either be attached as a separate document or been embedded in the HTML document, also multiple style sheet can be imported in HTML, with different style sheets depending on the output device that is been used.

No comments:

Post a Comment