home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / rfc / 3 / rfc2318.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  7.6 KB  |  284 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                             H. Lie
  8. Request for Comments: 2318                                        B. Bos
  9. Category: Informational                                        C. Lilley
  10.                                                                      W3C
  11.                                                               March 1998
  12.  
  13.  
  14.                         The text/css Media Type
  15.  
  16. Status of this Memo
  17.  
  18.    This memo provides information for the Internet community.  It does
  19.    not specify an Internet standard of any kind.  Distribution of this
  20.    memo is unlimited.
  21.  
  22. Copyright Notice
  23.  
  24.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  25.  
  26. Abstract
  27.  
  28.    Cascading Style Sheets (CSS) is a style sheet language for the World
  29.    Wide Web. CSS style sheets have been in use since October 1995 using
  30.    the Media Type text/css without registration; this memo seeks to
  31.    regularize that position.
  32.  
  33. 1.  Introduction
  34.  
  35.    The World Wide Web Consortium has issued a Recommendation [1], which
  36.    defines Cascading Style Sheets, level 1. This memo provides
  37.    information about the text/css Media Type.
  38.  
  39. 2.  Cascading Style Sheets
  40.  
  41.    Cascading Style Sheets (CSS) is a style sheet language for the World
  42.    Wide Web. It describes the presentation (e.g. fonts, colors and
  43.    spacing) of structured documents. CSS is human readable and writable,
  44.    and expresses style in common desktop publishing terminology.
  45.  
  46.    CSS style sheets have been in use since October 1995 using the Media
  47.    Type text/css without registration; this memo seeks to regularize
  48.    that position.
  49.  
  50.    A CSS style sheet can be either:
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Lie, et. al.                 Informational                      [Page 1]
  59.  
  60. RFC 2318                  text/css Media Type                 March 1998
  61.  
  62.  
  63.    (1) external - the style sheet is linked to a document through a
  64.        URI and exists as a separate object on the Web. The media type
  65.        text/css is used when fetching the object, for example in the
  66.        Content-Type and Accept header fields of HTTP [2].
  67.  
  68.    (2) internal - the style sheet is contained within the document. A
  69.        typical scenario is an HTML [3] document that contains a style
  70.        sheet within the STYLE element. Due to this close relationship,
  71.        HTML and CSS share the same top-level name ("text").
  72.  
  73. 4.  Registration Information
  74.  
  75.        To: ietf-types@iana.org
  76.        Subject: Registration of MIME media type text/css
  77.  
  78.        MIME media type name: text
  79.  
  80.        MIME subtype name: css
  81.  
  82.        Required parameters: none
  83.  
  84.        Optional parameters: charset
  85.  
  86.        The syntax of CSS is expressed in US-ASCII, but a CSS file can
  87.        contain strings which may use any Unicode character. Any charset
  88.        that is a superset of US-ASCII may be used; US-ASCII, iso-8859-X
  89.        and utf-8 are recommended.
  90.  
  91.    Encoding considerations:
  92.  
  93.        For use with transports that are not 8-bit clean, quoted-
  94.        printable encoding is recommended since the majority of
  95.        characters will be CSS syntax and thus US-ASCII
  96.  
  97.    Security considerations:
  98.  
  99.        Applying a style sheet to a document may hide information
  100.        otherwise visible. For example, a very small font size may be
  101.        specified, or the display of certain document elements may be
  102.        turned off.
  103.  
  104.        CSS style sheets consist of declarative property/value pairs
  105.        assigned to element selectors. They contain no executable code.
  106.  
  107.        As with HTML documents, CSS style sheets may contain links to
  108.        other media (images, sounds, fonts, other style sheets) and those
  109.        links are typically followed automatically by software, resulting
  110.  
  111.  
  112.  
  113.  
  114. Lie, et. al.                 Informational                      [Page 2]
  115.  
  116. RFC 2318                  text/css Media Type                 March 1998
  117.  
  118.  
  119.        in the transfer of files without the explicit request of the user
  120.        for each one. The security considerations of each linked file are
  121.        those of the individual registered types.
  122.  
  123.    Interoperability considerations:
  124.  
  125.        CSS has proven to be widely interoperable across computer
  126.        platforms, across Web browsers of different makes, and for import
  127.        and export in multiple authoring tools.
  128.  
  129.    Published specification: see [1]
  130.  
  131.    Applications which use this media type:
  132.  
  133.        CSS is device-, platform- and vendor-neutral and is supported by
  134.        a wide range of Web user agents and authoring tools for
  135.        formatting HTML and XML documents.
  136.  
  137.    Additional information:
  138.  
  139.        Magic number(s): none
  140.        File extension(s): .css
  141.        Macintosh File Type Code(s): "css "
  142.        Object Identifier(s) or OID(s): none
  143.  
  144.    Person & email address to contact for further information:
  145.  
  146.        The authors of this memo.
  147.  
  148.    Intended usage: COMMON
  149.  
  150.      Author/Change controller:
  151.  
  152. 5.  References
  153.  
  154.    [1]  Lie, H., and B. Bos, "Cascading Style Sheets, level 1",
  155.         W3C Recommendation REC-CSS1-961217, http://www.w3.org/TR/REC-
  156.         CSS1-961217, December 1996.
  157.  
  158.    [2]  Fielding, R., Gettys, J., Mogul, J., Nielsen, H., and T.
  159.         Berners-Lee, "Hypertext Transfer Protocol -- HTTP/1.1", RFC
  160.         2068, January 1997.
  161.  
  162.    [3]  Raggett, D., Le Hors, A. and I. Jacobs, "HTML 4.0
  163.         Specification", W3C Recommendation REC-html40-971218,
  164.         http://www.w3.org/TR/REC-html40, December 1997.
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Lie, et. al.                 Informational                      [Page 3]
  171.  
  172. RFC 2318                  text/css Media Type                 March 1998
  173.  
  174.  
  175. 6.  Authors' Addresses
  176.  
  177.    Hakon Lie
  178.    W3C/INRIA
  179.    2004, route des Lucioles - B.P. 93
  180.    06902 Sophia Antipolis Cedex
  181.    FRANCE
  182.  
  183.    Phone: +33 (0)492387771
  184.    Fax:   +33 (0)493657765
  185.    EMail: howcome@w3.org
  186.  
  187.  
  188.    Bert Bos
  189.    2004, route des Lucioles - B.P. 93
  190.    06902 Sophia Antipolis Cedex
  191.    FRANCE
  192.  
  193.    Phone: +33 (0)492387692
  194.    Fax:   +33 (0)493657765
  195.    EMail: bert@w3.org
  196.  
  197.  
  198.    Chris Lilley
  199.    2004, route des Lucioles - B.P. 93
  200.    06902 Sophia Antipolis Cedex
  201.    FRANCE
  202.  
  203.    Phone: +33 (0)492387987
  204.    Fax:   +33 (0)493657765
  205.    EMail: chris@w3.org
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Lie, et. al.                 Informational                      [Page 4]
  227.  
  228. RFC 2318                  text/css Media Type                 March 1998
  229.  
  230.  
  231. 7.  Full Copyright Statement
  232.  
  233.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  234.  
  235.    This document and translations of it may be copied and furnished to
  236.    others, and derivative works that comment on or otherwise explain it
  237.    or assist in its implmentation may be prepared, copied, published and
  238.    distributed, in whole or in part, without restriction of any kind,
  239.    provided that the above copyright notice and this paragraph are
  240.    included on all such copies and derivative works.  However, this
  241.    document itself may not be modified in any way, such as by removing
  242.    the copyright notice or references to the Internet Society or other
  243.    Internet organizations, except as needed for the purpose of
  244.    developing Internet standards in which case the procedures for
  245.    copyrights defined in the Internet Standards process must be
  246.    followed, or as required to translate it into languages other than
  247.    English.
  248.  
  249.    The limited permissions granted above are perpetual and will not be
  250.    revoked by the Internet Society or its successors or assigns.
  251.  
  252.    This document and the information contained herein is provided on an
  253.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  254.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  255.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  256.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  257.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE."
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Lie, et. al.                 Informational                      [Page 5]
  283.  
  284.