Advantage of CSS


by Santanu Ghosh

Cascading Style Sheets were first introduced in the year1996; they opened up a new and exciting new opportunity. The CSS concept enabled much more sophisticated page layout designs and thus helped to manage more complex tasks of developing and maintaining web sites, and keeping them up to date. Cascading Style Sheets (CSS) are used to separate the stylistic elements of a page such as layout, color and fonts from the content of the page such as paragraphs and images.Cascading Style Sheets is a great-simplified process for making web pages accessible to as many people as possible, regardless of the device they use to read a page, and regardless of any disability they might have.Style sheets are designed to allow you to globally specify colors, fonts and backgrounds for an entire Web site. For instance, if you specify that all H1 tags should be centered, then you do not need to repeat the ALIGN="center" tag on every page.For example:body: {margin-left: 25px; margin-right: 25px; font-family: Verdana, Arial, Helvetica, sans-serif;line-spacing: 120} Without CSSText goes to edge of screen, is single-spaced and in Times New Roman (bad for monitors).CSS is also good for search engine crawlers because of the following advantagesCSS allows for smaller file sizes CSS allows you greater control of page structure CSS allows you to hide certain content from browsers while the search engine crawlers still pick it up CSS allows for smaller file sizesBy taking styles out of the HTML page and putting it into a standalone file (.css) you can reduce the overall amount of code in your web pages. You create a number of s. You import a style sheet generated by a perl script. The style sheet sets all but one random to display:none. Your design looks fresh, Search Engines pick all of the content up (so any links in the random content are seen every time), and screen reader users get it all too* so it keeps your content accessible. Simple, but useful.Use a single style sheet for all of the pages on your site (or possibly a few coordinated ones if you have pages with very different needs: for example technical documentation versus marketing pages). One of the main benefits of style sheets is to ensure visual continuity as the user navigates your site. Legacy publications have long known the value of basing print products on a single typeface: no matter where you turn in a magazine or a newspaper, the text and basic layout will look the same. Websites will gain the same brand cohesiveness if all the pages on a site link to the same style sheet. Always use linked style sheets rather than embedded styles. Only by referencing an external file will you get the maintenance benefits of being able to update the look of your entire site with a single change. Also, by pulling style definitions out of your pages, you make them smaller and faster to download. If you use a single style sheet for your entire site, that file will be a single download once and for all.Thus CSS is an elegantly and effective designed extension to the Web and one of the greatest hopes for recapturing the Web's ideal of separation of presentation and content. The Web is the ultimate cross-platform system, and your content will be presented on such a huge variety of devices that pages should specify the meaning of the information and leave presentation details to a merger (or "cascade") of site-specified style sheets and the user's preferences.

About the Author

Santanu represents Simplesoft Technologies. You can get more information about the company at http://www.simplesoftindia.com

Tell others about
this page:

facebook twitter reddit google+



Comments? Questions? Email Here

© HowtoAdvice.com

Next
Send us Feedback about HowtoAdvice.com
--
How to Advice .com
Charity
  1. Uncensored Trump
  2. Addiction Recovery
  3. Hospice Foundation
  4. Flat Earth Awareness
  5. Oil Painting Prints