< Css Tutorial

Css introduction

Next →

Cascading Style Sheets or CSS, is a simple design language intended to simplify the process of making web pages presentable.

CSS handles the look and feel part of a web page. Using CSS, you can control the color of the text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what background images or colors are used, layout designs, variations in display for different devices and screen sizes as well as a variety of other effects.

CSS is easy to learn and understand but it provides powerful control over the presentation of an HTML document. Most commonly, CSS is combined with the markup languages HTML or XHTML.

CSS Versions

  1. Cascading Style Sheets, level 1 (CSS1) came out of W3C as a recommendation in December 1996. This version describes the CSS language as well as a simple visual formatting model for all the HTML tags.
  2. CSS2 became a W3C recommendation in May 1998 and builds on CSS1. This version adds support for media-specific style sheets e.g. printers and aural devices, downloadable fonts, element positioning and tables.
  3. CSS3 became a W3C recommendation in June 1999 and builds on older versions CSS. it has divided into documentations is called as Modules and here each module having new extension features defined in CSS2.

Advantages of Using CSS

1. CSS Save lots of time — CSS gives lots of flexibility to set the properties of an element. You can write CSS once and then the same code can be applied to the groups of HTML elements, and can also be reused in multiple HTML pages.

2. Easy maintenance — CSS provide an easy means to update document formatting and maintain consistency across multiple documents. By making one change to the website's CSS, elements in all the web pages will be updated automatically.

3. Pages load faster — CSS enable multiple pages to share formatting and reduce complexity and repetition in the structural content. It significantly reduces the file transfer size, which results in a faster page loading.

4. Superior styles to HTML — CSS has much wider presentation capabilities than HTML, so you can give better look to your HTML pages in comparison to the HTML presentational elements and attributes.

5.Multiple Device Compatibility — CSS can also allow the HTML document to be optimized for more than one type of device or media. Using CSS the same HTML document can be presented in different viewing styles for different rendering devices such as computer screen, cell phones, printer, etc.

Next →