






|
2000 Affordable Web Site Templates Like This at Webmasters Profit Pak
Using Web Templates for Web Design: Tips and Best Practices--Style Sheets
Style sheets allow Webmasters to control the presentation or layout (e.g. fonts,
colors, margins, fontfaces, and other aspects of style) of a Web document without
compromising its structure. CSS is a simple style sheet language allowing Web
page designers to attach style to HTML documents. It uses common desktop publishing
terminology which should make it easy for professionals as well as untrained
designers to make use of its features. With HTML 4.01, the tags and attributes
were made available to associate style information with an HTML-encoded document
-- finally allowing the separation of layout from logical structure. This is
not a new model -- SGML has always used style sheets for layout and reserved
the SGML tagging for defining the structure of the document.
Cascading Style Sheets, level 1 (CSS1)
became a W3C Recommendation in December 1996. It describes the CSS language
as well as a simple visual formatting model. CSS2,
which became a W3C Recommendation in May 1998, builds on CSS1 and adds support
for media-specific style sheets (e.g., printers and aural devices), downloadable
fonts, element positioning and tables. Unfortunately, CSS2 is not broadly supported
by the major browsers, so the Library of Congress will begin by using CSS1 as
its standard for style sheets on the Web site (although CSS1 is not fully supported
by browsers at the version 4.0 level and below). CSS3 is currently under development.
You can follow its progress
as new drafts are published.
Style Sheets, Rules, Selectors, Declarations
A style sheet is a set of one or more "rules" that apply to an HTML
document. A "rule" is a statement about one stylistic aspect of one
or more HTML elements (tags). Rules can be separated into two distinct components:
selectors and declarations.
|