CSS

Share This
« Back to Glossary Index
  • Rating:
  • (4722)

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. (Source: WikiPedia)

CSS (Wikipedia)
Cascading Style Sheets (CSS)
CSS3 logo and wordmark.svg
Filename extension
.css
Internet media type
text/css
Uniform Type Identifier (UTI)public.css
Developed byWorld Wide Web Consortium (W3C)
Initial releaseDecember 17, 1996; 24 years ago (1996-12-17)
Latest release
CSS 2.1 : Level 2 Revision 1
(April 12, 2016; 5 years ago (2016-04-12))
Type of formatStyle sheet language
Container forStyle rules for HTML elements (tags)
Contained byHTML Documents
Open format?Yes
Websitewww.w3.org/TR/CSS/#css

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.

CSS is designed to enable the separation of presentation and content, including layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple web pages to share formatting by specifying the relevant CSS in a separate .css file which reduces complexity and repetition in the structural content as well as enabling the .css file to be cached to improve the page load speed between the pages that share the file and its formatting.

Separation of formatting and content also makes it feasible to present the same markup page in different styles for different rendering methods, such as on-screen, in print, by voice (via speech-based browser or screen reader), and on Braille-based tactile devices. CSS also has rules for alternate formatting if the content is accessed on a mobile device.

The name cascading comes from the specified priority scheme to determine which style rule applies if more than one rule matches a particular element. This cascading priority scheme is 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). The W3C operates a free CSS validation service for CSS documents.

In addition to HTML, other markup languages support the use of CSS including XHTML, plain XML, SVG, and XUL.

About David Rashty

David Rashty, an entrepreneur and one of the early web pioneers, has over twenty years’ experience as a CTO and a CEO. David is the funder and CEO of CreativeMinds which focus on WordPress and Magento products.