Why Cascading ?

CSS or Cascading Style Sheets, got it's name cascading becaouse all styles are defined for one element are merged into one "virtual" style, by the priority and in this order:

-Defoult browser's style
-Extern Style Sheet
-Intern Style Sheet (inside <head> tag)
-Inline Style (inside HTML element)

The biggest priority has INLINE style and it revokes all previous styles.



PopArt STUDIO - CSS

  What is CSS ?


CSS is short for "Cascading Style Sheet" and it is used to define styles that determine the look of HTML elements (font, colours, backgrounds, space...). Those styles are added to "Style Sheets", extern files with .css extension or simply write in the heather of HTML documents, or even inline, directly on the elements.

Extern styles are the best because they save your working time, and redesigning HTML document time.
CSS was originally created in W3C, and it showed up together with HTML 4.0 as a solution for a problem in separation of page content from design.

HTML was imagined to take care just for the content - it was supposed to show only paragraphs, tables, headings, etc. The apperience was covered by browsers. But, many browser creators started adding additional HTML tags (such as font tag and colour atribute) to original HTML, many developers found themselves difficult to create their own pages. In order to keep everything working, World Wide Web Consortium (W3C) - non profitable organisation (which is responsible for HTML standardisation as an addition to HTML 4.0) created STYLES. Netscape 4.0 and Internet Explorer 4.0 supported styles.

A lot of people consider the comming of CSS as a turning point that gave developers a chance to control styles and the apperiance of more HTML pages at once. Today, a developer can define a style for an element and use it in whatever a number of pages they want.