Small Business Resources, Business Advice and Forms from AllBusiness.com
 

Improve Web Site Functionality with Cascading Style Sheets

As the Web becomes increasingly complex, basic HTML is mostly used as a text formatting tool. Now a far more elegant, flexible, and attractive Web-building language has begun to assert itself. It's called Cascading Style Sheets (CSS), and, although it may take you a while to learn, its advantages

are numerous.

CSS sites begin with a style sheet -- a document, designated by the .css file extension, which contains the various style definitions associated with a page or site's components. For example, a style sheet can tell a browser what size text to use in any or all headers, what color border to put around a given portion of content, or how wide the page should be. CSS term applies the designated styles to the page content, unless explicitly told to do otherwise. That is, the style definitions "cascade" through the code until new directions are received.

With CSS, the bulk of your markup will be done in these style sheets, which allow the information they contain to be used over and over again without being recreated. As a result, CSS pages tend to require less code, and therefore they load faster. Since a single style sheet controls your whole site's design and layout, site-wide changes only require you to update one file. The lack of markup in your code also makes that code easier to read and maintain.

Probably the most significant advantage CSS has over HTML is that it allows you to separate content from presentation. CSS still uses tags, but their relationship with the style sheets makes them far more powerful than HTML tags. They denote everything from position to design to interactive functions like rollovers.

Another benefit of CSS is that it can help improve your search engine rankings. Because its page code is cleaner and faster, and because the actual content of the page is placed higher in CSS-built pages, it's easier for search engines to decipher them. CSS also allows you to be more explicit about the exact nature of the content. For example, you could create a tag called "address" or "employees." Be sure to read What Is Search Engine Optimization? for more information on this topic.

Because content and markup are so effectively segregated in CSS sites, you can make them display in a range of formats just by referencing a different style sheet. For example, you can create a style sheet exclusively for print format, or even for cell phones.

If there's a drawback to CSS, it's that it takes time to learn. But once you're up and running with it, you'll have a cleaner, more flexible Web site that is free of table-dependent designs.

In addition, make sure to read these articles:

  • Content integration for customer-focused...
  • Most corporate applications focused on delivering client information on an enterprise basis-particularly customer portals and CRM installations-fail to achieve anywhere near their full potential. They ......
  • A roadmap for proper taxonomy design: Part 1 of 2
  • Burgeoning information quantities, regulatory compliance requirements and competitive drivers for speedier, more accurate data analysis continue to spur the development of many new, innovative information ......
  • Why Can't You Build Your Own Web Site?
  • The question isn't whether you can build your site in house, it's whether you should. It's easy enough to master the Web development basics - ......
  • W3C Issues Associating Style Sheets with XML as...
  • http://www.w3.org/--(BUSINESS WIRE)--June 29, 1999-- The World Wide Web Consortium (W3C) today releases Associating Style Sheets with XML Documents as a W3C Recommendation, representing cross-industry and ......
  • Astrobyte Releases BeyondPress 3.0; New...
  • DENVER--(BUSINESS WIRE)--July 11, 1997--Astrobyte today announced the release of BeyondPress 3.0 for Mac(R) OS, the latest version of its Web authoring XTension for QuarkXPress(R). The ......
  • Be careful what you wish for
  • IMAGE PHOTOGRAPH 2 "When it comes to equality in computing, some of us are clearly more equal than others." coming full circle Providing for Special ......
  • The World Wide Web Consortium Releases CSS1...
  • http://www.w3.org/--(BUSINESS WIRE)--Jan. 26, 1999-- Press Release: http://www.w3.org/Press/1999/CSS-Testsuite Testimonials: http://www.w3.org/Press/1999/CSS-Testimonials Following its mission to lead the evolution of the Web, the World Wide Web Consortium today ......
  • Nuts & Bolts -- Type casting
  • How to make your on-screen text look its best ......
  • Designing for accessibility on the Web: More...
  • Our society has become very sensitive to the needs of those who are disabled. We have spent millions updating buildings to allow for accessibility. Laws ......
  • Inso unveils Outside in Server version 2.5
  • Information Exchange, a division of Inso Corp., has announced the release of version 2.5 of its Outside In Server product, a Web server plug-in that ......
  • Creating Web Pages with HTML Simplified.
  • Ruth Maran. 1999. 2nd ed. Foster City, CA: IDG Books Worldwide, Inc. [ISBN 0-7645-6067-0. 225 pages, including index. $24.99 (soft cover).] The good news about ......
  • Definition du jour.
  • CSS CSS (Cascading Style Sheets) is a language for the speech rendering of documents (commonly used by vision impaired persons or those with limited reading ......
  • Create Extensible Web Pages with XML and CSS.
  • K. Kagle. 1999-2000. XML magazine (Winter):68-74. Kagle claims XML will equal the impact of desktop publishing and HTML, demonstrates XML's tremendous potential, and admits that ......
  • Nacio's Director of Production...
  • NOVATO, Calif. -- The recently published "Stylin' with CSS -- a designer's guide" by Charles Wyke-Smith has rapidly become Amazon's top selling programming book, ......