CSS- Part 1

cascading_style_sheet_css.jpgBefore you begin coding CSS you need to have a basic understanding of XHTML/HTML is necessary for beginners

The term CSS means Cascading Style Sheets, these styles determine how the HTML elements are displayed and these style are usually kept in style sheets. Initially styles was an addition to solve a problem in HTML 4.0 and external versions can be quite effective. Externals are kept in CSS Files and multiple style definitions cascade into a single one.

Under web development, the stylesheet language is Cascading Style Sheets (CSS) and is commonly made in use when describing the presentation of a document which is written down in a markup language. commonly used for web page styling which are jotted down in XHTML and HTML, but the versatility of this language allows it to be used for any kind of documents using XML including XUL and SVG.

Solution to a common problem – styles

The content of a document was originally defined using HTML tags saying “This is a header”, “This is a table”, “This is a paragraph”, for which tags like <h1>, <p>, <table> were used. The document layout was taken care of without formatting tags by the browser.

The original HTML specification left far behind and with the advent of the major browsers i.e. I.E. and Netscape starting to add new attributes and HTML tags in supplementation to the original HTML specification, thus the differentiation between a web page where the documents presentation layout was separated from the content of HTML documents became more and more difficult

Thus the styles were created, to solve the problem of differentiation, by the W3C i.e. the World Wide Web Consortium, which is the non profit consortium for standard setting of HTML.

Cascading style sheets are thus supported by the major browsers

The next part of this article will deal with the

1) effectiveness of style sheets and

2) multiple style cascading into one

Comments are closed.