Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can also be applied to any kind of XML document, including plain XML, SVG and XUL.
CSS is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow the web page to display differently depending on the screen size or device on which it is being viewed. While the author of a document typically links that document to a CSS style sheet, readers can use a different style sheet, perhaps one on their own computer, to override the one the author has specified.
CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.
The CSS specifications are maintained by the World Wide Web Consortium (W3C). Internet media type (MIME type) text/css
is registered for use with CSS by RFC 2318 (March 1998), and they also operate a free CSS validation service.
Read more about Cascading Style Sheets: Syntax, History, Browser Support, Limitations, Advantages, CSS Frameworks, Positioning
Famous quotes containing the words cascading, style and/or sheets:
“Have We not made the earth as a cradle and the mountains as pegs? And We created you in pairs, and We appointed your sleep for a rest; and We appointed night for a garment, and We appointed day for a livelihood. And We have built above you seven strong ones, and We appointed a blazing lamp and have sent down out of the rain-clouds water cascading that We may bring forth thereby grain and plants, and gardens luxuriant.”
—QurAn. The Tiding, 78:6-16, trans. by Arthur J. Arberry (1955)
“To translate, one must have a style of his own, for otherwise the translation will have no rhythm or nuance, which come from the process of artistically thinking through and molding the sentences; they cannot be reconstituted by piecemeal imitation. The problem of translation is to retreat to a simpler tenor of ones own style and creatively adjust this to ones author.”
—Paul Goodman (19111972)
“Last night you lay a-sleeping? No!
The room was thirty-five below;
The sheets and blankets turned to snow.
MHed got in: Dirty Dinky.”
—Theodore Roethke (19081963)