Cascading Style Sheets

  • cascading style sheets (css)
    css3 logo and wordmark.svg
    filename extension.css
    internet media typetext/css
    uniform type identifier (uti)public.css
    developed by
    • håkon wium lie
    • bert bos
    • world wide web consortium
    initial releasedecember 17, 1996; 23 years ago (1996-12-17)
    type of formatstyle sheet language
    www.w3.org/style/css/

    cascading style sheets (css) is a style sheet language used for describing the presentation of a document written in a markup language like html.[1] css is a cornerstone technology of the world wide web, alongside html and javascript.[2]

    css is designed to enable the separation of presentation and content, including layout, colors, and fonts.[3] 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, and reduce complexity and repetition in the structural content.

    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.[4]

    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 (rfc 2318 (march 1998). the w3c operates a free css validation service for css documents.[5]

    in addition to html, other markup languages support the use of css including xhtml, plain xml, svg, and xul.

  • syntax
  • history
  • browser support
  • limitations
  • advantages
  • standardization
  • references
  • further reading
  • external links

Cascading Style Sheets (CSS)
CSS3 logo and wordmark.svg
Filename extension.css
Internet media typetext/css
Uniform Type Identifier (UTI)public.css
Developed by
Initial releaseDecember 17, 1996; 23 years ago (1996-12-17)
Type of formatStyle sheet language
www.w3.org/Style/CSS/

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

CSS is designed to enable the separation of presentation and content, including layout, colors, and fonts.[3] 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, and reduce complexity and repetition in the structural content.

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.[4]

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 (RFC 2318 (March 1998). The W3C operates a free CSS validation service for CSS documents.[5]

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