CSS is a style sheet language used to describe the presentation semantics of a document written in a markup language. CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts. CSS was initially released on 17th December 1996, and it was released and developed by W3C.
Let?s have a look at some of the advantages that CSS has to offer.
Flexibility:- When CSS is combined with that of the functionality of CMS, a healthy amount of flexibility can be programmed into content submission forms. This allows a author, who may not be familiar or be able to understand or edit CSS or HTML code to select the layout of an article or other page they are submitting on-the-fly, in the same form. For example, an author of an article may be able to select the number of columns and whether or not the page or article carries an image. Later this information is passed to the CMS and the program logic evaluates the information and determines how to apply classes and IDs to the HTML elements, therefore styling and positioning them according to the pre-defined CSS for that particular layout type.
Separation of Content and Presentation:- CSS facilitates publication of the content in presentation format based on the normal parameters. Nominal parameters include explicit user preferences, different web browsers, the type of device being used to view the content the location of the user and many other variables.
Bandwidth:- A style sheet is usually stored in the browser cache, and can therefore be used on multiple pages without being reloaded, reducing data transfer over a network.
Site Wide Consistency:- When CSS is used effectively, in terms of inheritance and cascading, a global style sheet can be used to affect and style elements site-wide. If the situation arises that the styling of the elements should need to be changed or adjusted, then these changes can be made simply by editing a few rules in the global style sheet.
Page Reformatting:- With a simple change of one line, a different style sheet can be used for the same page. This has advantages for accessibility, as well as providing the ability to tailor a page or site to different target devices. More than that, devices which are not able to understand the styling still display the content.
These have some of the advantages of CSS and it clearly proves that why programmers and developers use CSS.
|