The text/css Media Type (RFC2318)
Original Publication Date: 1998-Mar-01
Included in the Prior Art Database: 2019-Feb-15
Internet Society Requests For Comment (RFCs)
H. Lie: AUTHOR [+2]
This memo provides information about the text/css Media Type. This memo provides information for the Internet community. It does not specify an Internet standard of any kind.
Network Working Group H. Lie Request for Comments: 2318 B. Bos Category: Informational C. Lilley W3C March 1998
The text/css Media Type
Status of this Memo
This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited.
Copyright (C) The Internet Society (1998). All Rights Reserved.
Cascading Style Sheets (CSS) is a style sheet language for the World Wide Web. CSS style sheets have been in use since October 1995 using the Media Type text/css without registration; this memo seeks to regularize that position.
The World Wide Web Consortium has issued a Recommendation , which defines Cascading Style Sheets, level 1. This memo provides information about the text/css Media Type.
2. Cascading Style Sheets
Cascading Style Sheets (CSS) is a style sheet language for the World Wide Web. It describes the presentation (e.g. fonts, colors and spacing) of structured documents. CSS is human readable and writable, and expresses style in common desktop publishing terminology.
CSS style sheets have been in use since October 1995 using the Media Type text/css without registration; this memo seeks to regularize that position.
A CSS style sheet can be either:
Lie, et. al. Informational [Page 1]
RFC 2318 text/css Media Type March 1998
(1) external - the style sheet is linked to a document through a URI and exists as a separate object on the Web. The media type text/css is used when fetching the object, for example in the Content-Type and Accept header fields of HTTP .
(2) internal - the style sheet is contained within the document. A typical scenario is an HTML  document that contains a style sheet within the STYLE element. Due to this close relationship, HTML and CSS share the same top-level name ("text").
4. Registration Information
To: firstname.lastname@example.org Subject: Registration of MIME media type text/css
MIME media type name: text
MIME subtype name: css
Required parameters: none
Optional parameters: charset
The syntax of CSS is expressed in US-ASCII, but a CSS file can contain strings which may use any Unicode character. Any charset that is a superset of US-ASCII may be used; US-ASCII, iso-8859-X and utf-8 are recommended.
For use with transports that are not 8-bit clean, quoted- printable encoding is recommended since the majority of characters will be CSS syntax and thus US-ASCII
Applying a style sheet to a document may hide information otherwise visible. For example, a very small font size may be specified, or the display of certain document elements may be turned off.
CSS style sheets consist of declarative property/value pairs assigned to element selectors. They contain no executable code.
As with HTML documents, CSS style sheets may contain links to other media (images, sounds, fonts, other style sheets) and those links are typically followed automatically by software,...