Thursday, March 3, 2011

Advantages of CSS?

  • CSS saves time

  • When most of us first learn HTML, we get taught to set the font face, size, colour, style etc every time it occurs on a page. This means we find ourselves typing (or copying & pasting) the same thing over and over again. With CSS, you only have to specify these details once for any element. CSS will automatically apply the specified styles whenever that element occurs.

  • Pages load faster

  • Less code means faster download times.

  • Easy maintenance

  • To change the style of an element, you only have to make an edit in one place.

  • Superior styles to HTML

  • CSS has a much wider array of attributes than HTML.

  • Improved Search Engine Results:

  • With use of CSS, you can keep your HTML code much cleaner. As a result search engine bots do not have to separate the real content from the junk code. You are also free to put any content anywhere in your document with CSS. This will aid the search engine crawlers to identify the important content first.

  • Sites Load Faster:

  • As the style sheets are lighter, it will enable the websites to load faster. Since table layouts are no longer required in CSS, the sites take up less memory and load faster. The users will find it easier to view a site designed using CSS as it will load in a fast pace and can be swiftly navigated from one page to other.

  • Design Separated from Content:

  • A web designer has more control over a website with CSS as a style sheet can be linked to all your web documents. For a slight modification, what you have to do is edit a single file, just the style sheet. Information related to layout, positioning, style, font and color are all put in a style sheet for the entire site.

  • Displayed on Various Media:

  • A web designer has great flexibility in presenting the content. Different style sheets can be used for different media without even the user knowing it. Style sheets can be made for different media like the printer and PDA.

  • Compatibility with Browsers:

  • Adhering to the web standards set by W3C, a designer is making it obvious that the content of a site is validated in all browsers. But with the introduction of a new browsers, it is not possible to test a website for all probable browsers. But if the coding is done following to a standard, a major part of the job is already done.

No comments:

Post a Comment