XML technologies / CSS / Advanced websites with CSS / Putting CSS in perspective / The benefits of CSS design / More design possibilities
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
A major advantage of CSS is the wealth of design tools it offers compared with plain HTML, such as hover effects when formatting hyperlinks. For a complete list of the new design possibilities offered by CSS, see CSS property reference.
CSS not only offers more design tools; unlike HTML, it also lets you apply them consistently to page elements. For example, to create a visible border around an arbitrary area or element using HTML alone, you have to create a table, because HTML only allows borders around tables. CSS removes this requirement: you can create a border around any element on the page and freely define its properties (solid, dotted or dashed; wide or narrow; various colors, and so on). Giving designers as much freedom as possible was one of the main goals of CSS’s developers. Every style property can therefore be applied to all HTML elements for which it logically makes sense.
CSS simply has more properties that can be applied to more elements than HTML ever allowed. If you had to choose between CSS and HTML for creating a design, and based your decision solely on design possibilities, CSS would win by a huge margin. Nevertheless, it is common practice to rely primarily on HTML design and turn to stylesheets only when familiar tools and techniques are insufficient. A page developed with this mixed approach is as good as any other. However, many of CSS’s advantages are fully realized only when it is used consistently throughout a website, rather than merely as an HTML extension for special effects.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top