home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / HTML_REF / HTML2 / HTML_V2.TXT < prev    next >
Encoding:
Text File  |  1995-11-09  |  107.5 KB  |  3,076 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. Network Working Group                                    T. Berners-Lee
  14.  
  15. Request for Comments: 1866                                      MIT/W3C
  16.  
  17. Category: Standards Track                                   D. Connolly
  18.  
  19.                                                           November 1995
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                     Hypertext Markup Language - 2.0
  26.  
  27.  
  28.  
  29. Status of this Memo
  30.  
  31.  
  32.  
  33.    This document specifies an Internet standards track protocol for the
  34.  
  35.    Internet community, and requests discussion and suggestions for
  36.  
  37.    improvements.  Please refer to the current edition of the "Internet
  38.  
  39.    Official Protocol Standards" (STD 1) for the standardization state
  40.  
  41.    and status of this protocol.  Distribution of this memo is unlimited.
  42.  
  43.  
  44.  
  45. Abstract
  46.  
  47.  
  48.  
  49.    The Hypertext Markup Language (HTML) is a simple markup language used
  50.  
  51.    to create hypertext documents that are platform independent. HTML
  52.  
  53.    documents are SGML documents with generic semantics that are
  54.  
  55.    appropriate for representing information from a wide range of
  56.  
  57.    domains. HTML markup can represent hypertext news, mail,
  58.  
  59.    documentation, and hypermedia; menus of options; database query
  60.  
  61.    results; simple structured documents with in-lined graphics; and
  62.  
  63.    hypertext views of existing bodies of information.
  64.  
  65.  
  66.  
  67.    HTML has been in use by the World Wide Web (WWW) global information
  68.  
  69.    initiative since 1990. This specification roughly corresponds to the
  70.  
  71.    capabilities of HTML in common use prior to June 1994. HTML is an
  72.  
  73.    application of ISO Standard 8879:1986 Information Processing Text and
  74.  
  75.    Office Systems; Standard Generalized Markup Language (SGML).
  76.  
  77.  
  78.  
  79.    The "text/html" Internet Media Type (RFC 1590) and MIME Content Type
  80.  
  81.    (RFC 1521) is defined by this specification.
  82.  
  83.  
  84.  
  85. Table of Contents
  86.  
  87.  
  88.  
  89.     1.     Introduction ........................................... 2
  90.  
  91.     1.1    Scope .................................................. 3
  92.  
  93.     1.2    Conformance ............................................ 3
  94.  
  95.     2.     Terms .................................................. 6
  96.  
  97.     3.     HTML as an Application of SGML .........................10
  98.  
  99.     3.1    SGML Documents .........................................10
  100.  
  101.     3.2    HTML Lexical Syntax ................................... 12
  102.  
  103.     3.3    HTML Public Text Identifiers .......................... 17
  104.  
  105.     3.4    Example HTML Document ................................. 17
  106.  
  107.     4.     HTML as an Internet Media Type ........................ 18
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. Berners-Lee & Connolly      Standards Track                     [Page 1]
  116.  
  117.  
  118.  
  119. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  120.  
  121.  
  122.  
  123.  
  124.  
  125.     4.1    text/html media type .................................. 18
  126.  
  127.     4.2    HTML Document Representation .......................... 19
  128.  
  129.     5.     Document Structure .................................... 20
  130.  
  131.     5.1    Document Element: HTML ................................ 21
  132.  
  133.     5.2    Head: HEAD ............................................ 21
  134.  
  135.     5.3    Body: BODY ............................................ 24
  136.  
  137.     5.4    Headings: H1 ... H6 ................................... 24
  138.  
  139.     5.5    Block Structuring Elements ............................ 25
  140.  
  141.     5.6    List Elements ......................................... 28
  142.  
  143.     5.7    Phrase Markup ......................................... 30
  144.  
  145.     5.8    Line Break: BR ........................................ 34
  146.  
  147.     5.9    Horizontal Rule: HR ................................... 34
  148.  
  149.     5.10   Image: IMG ............................................ 34
  150.  
  151.     6.     Characters, Words, and Paragraphs ..................... 35
  152.  
  153.     6.1    The HTML Document Character Set ....................... 36
  154.  
  155.     7.     Hyperlinks ............................................ 36
  156.  
  157.     7.1    Accessing Resources ................................... 37
  158.  
  159.     7.2    Activation of Hyperlinks .............................. 38
  160.  
  161.     7.3    Simultaneous Presentation of Image Resources .......... 38
  162.  
  163.     7.4    Fragment Identifiers .................................. 38
  164.  
  165.     7.5    Queries and Indexes ................................... 39
  166.  
  167.     7.6    Image Maps ............................................ 39
  168.  
  169.     8.     Forms ................................................. 40
  170.  
  171.     8.1    Form Elements ......................................... 40
  172.  
  173.     8.2    Form Submission ....................................... 45
  174.  
  175.     9.     HTML Public Text ...................................... 49
  176.  
  177.     9.1    HTML DTD .............................................. 49
  178.  
  179.     9.2    Strict HTML DTD ....................................... 61
  180.  
  181.     9.3    Level 1 HTML DTD ...................................... 62
  182.  
  183.     9.4    Strict Level 1 HTML DTD ............................... 63
  184.  
  185.     9.5    SGML Declaration for HTML ............................. 64
  186.  
  187.     9.6    Sample SGML Open Entity Catalog for HTML .............. 65
  188.  
  189.     9.7    Character Entity Sets ................................. 66
  190.  
  191.     10.    Security Considerations ............................... 69
  192.  
  193.     11.    References ............................................ 69
  194.  
  195.     12.    Acknowledgments ....................................... 71
  196.  
  197.     12.1   Authors' Addresses .................................... 71
  198.  
  199.     13.    The HTML Coded Character Set .......................... 72
  200.  
  201.     14.    Proposed Entities ..................................... 75
  202.  
  203.  
  204.  
  205. 1. Introduction
  206.  
  207.  
  208.  
  209.    The HyperText Markup Language (HTML) is a simple data format used to
  210.  
  211.    create hypertext documents that are portable from one platform to
  212.  
  213.    another. HTML documents are SGML documents with generic semantics
  214.  
  215.    that are appropriate for representing information from a wide range
  216.  
  217.    of domains.
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227. Berners-Lee & Connolly      Standards Track                     [Page 2]
  228.  
  229.  
  230.  
  231. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  232.  
  233.  
  234.  
  235.  
  236.  
  237.    As HTML is an application of SGML, this specification assumes a
  238.  
  239.    working knowledge of [SGML].
  240.  
  241.  
  242.  
  243. 1.1. Scope
  244.  
  245.  
  246.  
  247.    HTML has been in use by the World-Wide Web (WWW) global information
  248.  
  249.    initiative since 1990. Previously, informal documentation on HTML has
  250.  
  251.    been available from a number of sources on the Internet. This
  252.  
  253.    specification brings together, clarifies, and formalizes a set of
  254.  
  255.    features that roughly corresponds to the capabilities of HTML in
  256.  
  257.    common use prior to June 1994. A number of new features to HTML are
  258.  
  259.    being proposed and experimented in the Internet community.
  260.  
  261.  
  262.  
  263.    This document thus defines a HTML 2.0 (to distinguish it from the
  264.  
  265.    previous informal specifications). Future (generally upwardly
  266.  
  267.    compatible) versions of HTML with new features will be released with
  268.  
  269.    higher version numbers.
  270.  
  271.  
  272.  
  273.    HTML is an application of ISO Standard 8879:1986, "Information
  274.  
  275.    Processing Text and Office Systems; Standard Generalized Markup
  276.  
  277.    Language" (SGML). The HTML Document Type Definition (DTD) is a formal
  278.  
  279.    definition of the HTML syntax in terms of SGML.
  280.  
  281.  
  282.  
  283.    This specification also defines HTML as an Internet Media
  284.  
  285.    Type[IMEDIA] and MIME Content Type[MIME] called `text/html'. As such,
  286.  
  287.    it defines the semantics of the HTML syntax and how that syntax
  288.  
  289.    should be interpreted by user agents.
  290.  
  291.  
  292.  
  293. 1.2. Conformance
  294.  
  295.  
  296.  
  297.    This specification governs the syntax of HTML documents and aspects
  298.  
  299.    of the behavior of HTML user agents.
  300.  
  301.  
  302.  
  303. 1.2.1. Documents
  304.  
  305.  
  306.  
  307.    A document is a conforming HTML document if:
  308.  
  309.  
  310.  
  311.         * It is a conforming SGML document, and it conforms to the
  312.  
  313.         HTML DTD (see 9.1, "HTML DTD").
  314.  
  315.  
  316.  
  317.             NOTE - There are a number of syntactic idioms that
  318.  
  319.             are not supported or are supported inconsistently in
  320.  
  321.             some historical user agent implementations. These
  322.  
  323.             idioms are identified in notes like this throughout
  324.  
  325.             this specification.
  326.  
  327.  
  328.  
  329.         * It conforms to the application conventions in this
  330.  
  331.         specification. For example, the value of the HREF attribute
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339. Berners-Lee & Connolly      Standards Track                     [Page 3]
  340.  
  341.  
  342.  
  343. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  344.  
  345.  
  346.  
  347.  
  348.  
  349.         of the <A> element must conform to the URI syntax.
  350.  
  351.  
  352.  
  353.         * Its document character set includes [ISO-8859-1] and
  354.  
  355.         agrees with [ISO-10646]; that is, each code position listed
  356.  
  357.         in 13, "The HTML Coded Character Set" is included, and each
  358.  
  359.         code position in the document character set is mapped to the
  360.  
  361.         same character as [ISO-10646] designates for that code
  362.  
  363.         position.
  364.  
  365.  
  366.  
  367.             NOTE - The document character set is somewhat
  368.  
  369.             independent of the character encoding scheme used to
  370.  
  371.             represent a document. For example, the `ISO-2022-JP'
  372.  
  373.             character encoding scheme can be used for HTML
  374.  
  375.             documents, since its repertoire is a subset of the
  376.  
  377.             [ISO-10646] repertoire. The critical distinction is
  378.  
  379.             that numeric character references agree with
  380.  
  381.             [ISO-10646] regardless of how the document is
  382.  
  383.             encoded.
  384.  
  385.  
  386.  
  387. 1.2.2. Feature Test Entities
  388.  
  389.  
  390.  
  391.    The HTML DTD defines a standard HTML document type and several
  392.  
  393.    variations, by way of feature test entities. Feature test entities
  394.  
  395.    are declarations in the HTML DTD that control the inclusion or
  396.  
  397.    exclusion of portions of the DTD.
  398.  
  399.  
  400.  
  401.     HTML.Recommended
  402.  
  403.             Certain features of the language are necessary for
  404.  
  405.             compatibility with widespread usage, but they may
  406.  
  407.             compromise the structural integrity of a document. This
  408.  
  409.             feature test entity selects a more prescriptive document
  410.  
  411.             type definition that eliminates those features. It is
  412.  
  413.             set to `IGNORE' by default.
  414.  
  415.  
  416.  
  417.             For example, in order to preserve the structure of a
  418.  
  419.             document, an editing user agent may translate HTML
  420.  
  421.             documents to the recommended subset, or it may require
  422.  
  423.             that the documents be in the recommended subset for
  424.  
  425.             import.
  426.  
  427.  
  428.  
  429.     HTML.Deprecated
  430.  
  431.             Certain features of the language are necessary for
  432.  
  433.             compatibility with earlier versions of the
  434.  
  435.             specification, but they tend to be used and implemented
  436.  
  437.             inconsistently, and their use is deprecated. This
  438.  
  439.             feature test entity enables a document type definition
  440.  
  441.             that allows these features. It is set to `INCLUDE' by
  442.  
  443.             default.
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451. Berners-Lee & Connolly      Standards Track                     [Page 4]
  452.  
  453.  
  454.  
  455. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  456.  
  457.  
  458.  
  459.  
  460.  
  461.             Documents generated by translation software or editing
  462.  
  463.             software should not contain deprecated idioms.
  464.  
  465.  
  466.  
  467. 1.2.3. User Agents
  468.  
  469.  
  470.  
  471.    An HTML user agent conforms to this specification if:
  472.  
  473.  
  474.  
  475.         * It parses the characters of an HTML document into data
  476.  
  477.         characters and markup according to [SGML].
  478.  
  479.  
  480.  
  481.             NOTE - In the interest of robustness and
  482.  
  483.             extensibility, there are a number of widely deployed
  484.  
  485.             conventions for handling non-conforming documents.
  486.  
  487.             See 4.2.1, "Undeclared Markup Error Handling" for
  488.  
  489.             details.
  490.  
  491.  
  492.  
  493.         * It supports the `ISO-8859-1' character encoding scheme and
  494.  
  495.         processes each character in the ISO Latin Alphabet No. 1 as
  496.  
  497.         specified in 6.1, "The HTML Document Character Set".
  498.  
  499.  
  500.  
  501.             NOTE - To support non-western writing systems, HTML
  502.  
  503.             user agents are encouraged to support
  504.  
  505.             `ISO-10646-UCS-2' or similar character encoding
  506.  
  507.             schemes and as much of the character repertoire of
  508.  
  509.             [ISO-10646] as is practical.
  510.  
  511.  
  512.  
  513.         * It behaves identically for documents whose parsed token
  514.  
  515.         sequences are identical.
  516.  
  517.  
  518.  
  519.         For example, comments and the whitespace in tags disappear
  520.  
  521.         during tokenization, and hence they do not influence the
  522.  
  523.         behavior of conforming user agents.
  524.  
  525.  
  526.  
  527.         * It allows the user to traverse (or at least attempt to
  528.  
  529.         traverse, resources permitting) all hyperlinks from <A>
  530.  
  531.         elements in an HTML document.
  532.  
  533.  
  534.  
  535.    An HTML user agent is a level 2 user agent if, additionally:
  536.  
  537.  
  538.  
  539.         * It allows the user to express all form field values
  540.  
  541.         specified in an HTML document and to (attempt to) submit the
  542.  
  543.         values as requests to information services.
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563. Berners-Lee & Connolly      Standards Track                     [Page 5]
  564.  
  565.  
  566.  
  567. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  568.  
  569.  
  570.  
  571.  
  572.  
  573. 2. Terms
  574.  
  575.  
  576.  
  577.     absolute URI
  578.  
  579.             a URI in absolute form; for example, as per [URL]
  580.  
  581.  
  582.  
  583.     anchor
  584.  
  585.             one of two ends of a hyperlink; typically, a phrase
  586.  
  587.             marked as an <A> element.
  588.  
  589.  
  590.  
  591.     base URI
  592.  
  593.             an absolute URI used in combination with a relative URI
  594.  
  595.             to determine another absolute URI.
  596.  
  597.  
  598.  
  599.     character
  600.  
  601.             An atom of information, for example a letter or a digit.
  602.  
  603.             Graphic characters have associated glyphs, whereas
  604.  
  605.             control characters have associated processing semantics.
  606.  
  607.  
  608.  
  609.     character encoding
  610.  
  611.     scheme
  612.  
  613.             A function whose domain is the set of sequences of
  614.  
  615.             octets, and whose range is the set of sequences of
  616.  
  617.             characters from a character repertoire; that is, a
  618.  
  619.             sequence of octets and a character encoding scheme
  620.  
  621.             determines a sequence of characters.
  622.  
  623.  
  624.  
  625.     character repertoire
  626.  
  627.             A finite set of characters; e.g. the range of a coded
  628.  
  629.             character set.
  630.  
  631.  
  632.  
  633.     code position
  634.  
  635.             An integer. A coded character set and a code position
  636.  
  637.             from its domain determine a character.
  638.  
  639.  
  640.  
  641.     coded character set
  642.  
  643.             A function whose domain is a subset of the integers and
  644.  
  645.             whose range is a character repertoire. That is, for some
  646.  
  647.             set of integers (usually of the form {0, 1, 2, ..., N}
  648.  
  649.             ), a coded character set and an integer in that set
  650.  
  651.             determine a character. Conversely, a character and a
  652.  
  653.             coded character set determine the character's code
  654.  
  655.             position (or, in rare cases, a few code positions).
  656.  
  657.  
  658.  
  659.     conforming HTML user
  660.  
  661.     agent
  662.  
  663.             A user agent that conforms to this specification in its
  664.  
  665.             processing of the Internet Media Type `text/html'.
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675. Berners-Lee & Connolly      Standards Track                     [Page 6]
  676.  
  677.  
  678.  
  679. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  680.  
  681.  
  682.  
  683.  
  684.  
  685.     data character
  686.  
  687.             Characters other than markup, which make up the content
  688.  
  689.             of elements.
  690.  
  691.  
  692.  
  693.     document character set
  694.  
  695.             a coded character set whose range includes all
  696.  
  697.             characters used in a document. Every SGML document has
  698.  
  699.             exactly one document character set. Numeric character
  700.  
  701.             references are resolved via the document character set.
  702.  
  703.  
  704.  
  705.     DTD
  706.  
  707.             document type definition. Rules that apply SGML to the
  708.  
  709.             markup of documents of a particular type, including a
  710.  
  711.             set of element and entity declarations. [SGML]
  712.  
  713.  
  714.  
  715.     element
  716.  
  717.             A component of the hierarchical structure defined by a
  718.  
  719.             document type definition; it is identified in a document
  720.  
  721.             instance by descriptive markup, usually a start-tag and
  722.  
  723.             end-tag. [SGML]
  724.  
  725.  
  726.  
  727.     end-tag
  728.  
  729.             Descriptive markup that identifies the end of an
  730.  
  731.             element. [SGML]
  732.  
  733.  
  734.  
  735.     entity
  736.  
  737.             data with an associated notation or interpretation; for
  738.  
  739.             example, a sequence of octets associated with an
  740.  
  741.             Internet Media Type. [SGML]
  742.  
  743.  
  744.  
  745.     fragment identifier
  746.  
  747.             the portion of an HREF attribute value following the `#'
  748.  
  749.             character which modifies the presentation of the
  750.  
  751.             destination of a hyperlink.
  752.  
  753.  
  754.  
  755.     form data set
  756.  
  757.             a sequence of name/value pairs; the names are given by
  758.  
  759.             an HTML document and the values are given by a user.
  760.  
  761.  
  762.  
  763.     HTML document
  764.  
  765.             An SGML document conforming to this document type
  766.  
  767.             definition.
  768.  
  769.  
  770.  
  771.     hyperlink
  772.  
  773.             a relationship between two anchors, called the head and
  774.  
  775.             the tail. The link goes from the tail to the head. The
  776.  
  777.             head and tail are also known as destination and source,
  778.  
  779.             respectively.
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787. Berners-Lee & Connolly      Standards Track                     [Page 7]
  788.  
  789.  
  790.  
  791. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  792.  
  793.  
  794.  
  795.  
  796.  
  797.     markup
  798.  
  799.             Syntactically delimited characters added to the data of
  800.  
  801.             a document to represent its structure. There are four
  802.  
  803.             different kinds of markup: descriptive markup (tags),
  804.  
  805.             references, markup declarations, and processing
  806.  
  807.             instructions. [SGML]
  808.  
  809.  
  810.  
  811.     may
  812.  
  813.             A document or user interface is conforming whether this
  814.  
  815.             statement applies or not.
  816.  
  817.  
  818.  
  819.     media type
  820.  
  821.             an Internet Media Type, as per [IMEDIA].
  822.  
  823.  
  824.  
  825.     message entity
  826.  
  827.             a head and body. The head is a collection of name/value
  828.  
  829.             fields, and the body is a sequence of octets. The head
  830.  
  831.             defines the content type and content transfer encoding
  832.  
  833.             of the body. [MIME]
  834.  
  835.  
  836.  
  837.     minimally conforming
  838.  
  839.     HTML user agent
  840.  
  841.             A user agent that conforms to this specification except
  842.  
  843.             for form processing. It may only process level 1 HTML
  844.  
  845.             documents.
  846.  
  847.  
  848.  
  849.     must
  850.  
  851.             Documents or user agents in conflict with this statement
  852.  
  853.             are not conforming.
  854.  
  855.  
  856.  
  857.     numeric character
  858.  
  859.     reference
  860.  
  861.             markup that refers to a character by its code position
  862.  
  863.             in the document character set.
  864.  
  865.  
  866.  
  867.     SGML document
  868.  
  869.             A sequence of characters organized physically as a set
  870.  
  871.             of entities and logically into a hierarchy of elements.
  872.  
  873.             An SGML document consists of data characters and markup;
  874.  
  875.             the markup describes the structure of the information
  876.  
  877.             and an instance of that structure. [SGML]
  878.  
  879.  
  880.  
  881.     shall
  882.  
  883.             If a document or user agent conflicts with this
  884.  
  885.             statement, it does not conform to this specification.
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899. Berners-Lee & Connolly      Standards Track                     [Page 8]
  900.  
  901.  
  902.  
  903. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  904.  
  905.  
  906.  
  907.  
  908.  
  909.     should
  910.  
  911.             If a document or user agent conflicts with this
  912.  
  913.             statement, undesirable results may occur in practice
  914.  
  915.             even though it conforms to this specification.
  916.  
  917.  
  918.  
  919.     start-tag
  920.  
  921.             Descriptive markup that identifies the start of an
  922.  
  923.             element and specifies its generic identifier and
  924.  
  925.             attributes. [SGML]
  926.  
  927.  
  928.  
  929.     syntax-reference
  930.  
  931.     character set
  932.  
  933.             A coded character set whose range includes all
  934.  
  935.             characters used for markup; e.g. name characters and
  936.  
  937.             delimiter characters.
  938.  
  939.  
  940.  
  941.     tag
  942.  
  943.             Markup that delimits an element. A tag includes a name
  944.  
  945.             which refers to an element declaration in the DTD, and
  946.  
  947.             may include attributes. [SGML]
  948.  
  949.  
  950.  
  951.     text entity
  952.  
  953.             A finite sequence of characters. A text entity typically
  954.  
  955.             takes the form of a sequence of octets with some
  956.  
  957.             associated character encoding scheme, transmitted over
  958.  
  959.             the network or stored in a file. [SGML]
  960.  
  961.  
  962.  
  963.     typical
  964.  
  965.             Typical processing is described for many elements. This
  966.  
  967.             is not a mandatory part of the specification but is
  968.  
  969.             given as guidance for designers and to help explain the
  970.  
  971.             uses for which the elements were intended.
  972.  
  973.  
  974.  
  975.     URI
  976.  
  977.             A Uniform Resource Identifier is a formatted string that
  978.  
  979.             serves as an identifier for a resource, typically on the
  980.  
  981.             Internet. URIs are used in HTML to identify the anchors
  982.  
  983.             of hyperlinks. URIs in common practice include Uniform
  984.  
  985.             Resource Locators (URLs)[URL] and Relative URLs
  986.  
  987.             [RELURL].
  988.  
  989.  
  990.  
  991.     user agent
  992.  
  993.             A component of a distributed system that presents an
  994.  
  995.             interface and processes requests on behalf of a user;
  996.  
  997.             for example, a www browser or a mail user agent.
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011. Berners-Lee & Connolly      Standards Track                     [Page 9]
  1012.  
  1013.  
  1014.  
  1015. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.     WWW
  1022.  
  1023.             The World-Wide Web is a hypertext-based, distributed
  1024.  
  1025.             information system created by researchers at CERN in
  1026.  
  1027.             Switzerland. <URL:http://www.w3.org/>
  1028.  
  1029.  
  1030.  
  1031. 3. HTML as an Application of SGML
  1032.  
  1033.  
  1034.  
  1035.    HTML is an application of ISO 8879:1986 -- Standard Generalized
  1036.  
  1037.    Markup Language (SGML). SGML is a system for defining structured
  1038.  
  1039.    document types and markup languages to represent instances of those
  1040.  
  1041.    document types[SGML]. The public text -- DTD and SGML declaration --
  1042.  
  1043.    of the HTML document type definition are provided in 9, "HTML Public
  1044.  
  1045.    Text".
  1046.  
  1047.  
  1048.  
  1049.    The term "HTML" refers to both the document type defined here and the
  1050.  
  1051.    markup language for representing instances of this document type.
  1052.  
  1053.  
  1054.  
  1055. 3.1. SGML Documents
  1056.  
  1057.  
  1058.  
  1059.    An HTML document is an SGML document; that is, a sequence of
  1060.  
  1061.    characters organized physically into a set of entities, and logically
  1062.  
  1063.    as a hierarchy of elements.
  1064.  
  1065.  
  1066.  
  1067.    In the SGML specification, the first production of the SGML syntax
  1068.  
  1069.    grammar separates an SGML document into three parts: an SGML
  1070.  
  1071.    declaration, a prologue, and an instance. For the purposes of this
  1072.  
  1073.    specification, the prologue is a DTD. This DTD describes another
  1074.  
  1075.    grammar: the start symbol is given in the doctype declaration, the
  1076.  
  1077.    terminals are data characters and tags, and the productions are
  1078.  
  1079.    determined by the element declarations. The instance must conform to
  1080.  
  1081.    the DTD, that is, it must be in the language defined by this grammar.
  1082.  
  1083.  
  1084.  
  1085.    The SGML declaration determines the lexicon of the grammar. It
  1086.  
  1087.    specifies the document character set, which determines a character
  1088.  
  1089.    repertoire that contains all characters that occur in all text
  1090.  
  1091.    entities in the document, and the code positions associated with
  1092.  
  1093.    those characters.
  1094.  
  1095.  
  1096.  
  1097.    The SGML declaration also specifies the syntax-reference character
  1098.  
  1099.    set of the document, and a few other parameters that bind the
  1100.  
  1101.    abstract syntax of SGML to a concrete syntax. This concrete syntax
  1102.  
  1103.    determines how the sequence of characters of the document is mapped
  1104.  
  1105.    to a sequence of terminals in the grammar of the prologue.
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123. Berners-Lee & Connolly      Standards Track                    [Page 10]
  1124.  
  1125.  
  1126.  
  1127. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.    For example, consider the following document:
  1134.  
  1135.  
  1136.  
  1137.     <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
  1138.  
  1139.     <title>Parsing Example</title>
  1140.  
  1141.     <p>Some text. <em>*wow*</em></p>
  1142.  
  1143.  
  1144.  
  1145.    An HTML user agent should use the SGML declaration that is given in
  1146.  
  1147.    9.5, "SGML Declaration for HTML". According to its document character
  1148.  
  1149.    set, `*' refers to an asterisk character, `*'.
  1150.  
  1151.  
  1152.  
  1153.    The instance above is regarded as the following sequence of
  1154.  
  1155.    terminals:
  1156.  
  1157.  
  1158.  
  1159.         1. start-tag: TITLE
  1160.  
  1161.  
  1162.  
  1163.         2. data characters: "Parsing Example"
  1164.  
  1165.  
  1166.  
  1167.         3. end-tag: TITLE
  1168.  
  1169.  
  1170.  
  1171.         4. start-tag: P
  1172.  
  1173.  
  1174.  
  1175.         5. data characters "Some text."
  1176.  
  1177.  
  1178.  
  1179.         6. start-tag: EM
  1180.  
  1181.  
  1182.  
  1183.         7. data characters: "*wow*"
  1184.  
  1185.  
  1186.  
  1187.         8. end-tag: EM
  1188.  
  1189.  
  1190.  
  1191.         9. end-tag: P
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235. Berners-Lee & Connolly      Standards Track                    [Page 11]
  1236.  
  1237.  
  1238.  
  1239. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.    The start symbol of the DTD grammar is HTML, and the productions are
  1246.  
  1247.    given in the public text identified by `-//IETF//DTD HTML 2.0//EN'
  1248.  
  1249.    (9.1, "HTML DTD"). The terminals above parse as:
  1250.  
  1251.  
  1252.  
  1253.        HTML
  1254.  
  1255.         |
  1256.  
  1257.         \-HEAD
  1258.  
  1259.         |  |
  1260.  
  1261.         |  \-TITLE
  1262.  
  1263.         |      |
  1264.  
  1265.         |      \-<TITLE>
  1266.  
  1267.         |      |
  1268.  
  1269.         |      \-"Parsing Example"
  1270.  
  1271.         |      |
  1272.  
  1273.         |      \-</TITLE>
  1274.  
  1275.         |
  1276.  
  1277.         \-BODY
  1278.  
  1279.           |
  1280.  
  1281.           \-P
  1282.  
  1283.             |
  1284.  
  1285.             \-<P>
  1286.  
  1287.             |
  1288.  
  1289.             \-"Some text. "
  1290.  
  1291.             |
  1292.  
  1293.             \-EM
  1294.  
  1295.             |  |
  1296.  
  1297.             |  \-<EM>
  1298.  
  1299.             |  |
  1300.  
  1301.             |  \-"*wow*"
  1302.  
  1303.             |  |
  1304.  
  1305.             |  \-</EM>
  1306.  
  1307.             |
  1308.  
  1309.             \-</P>
  1310.  
  1311.  
  1312.  
  1313.    Some of the elements are delimited explicitly by tags, while the
  1314.  
  1315.    boundaries of others are inferred. The <HTML> element contains a
  1316.  
  1317.    <HEAD> element and a <BODY> element. The <HEAD> contains <TITLE>,
  1318.  
  1319.    which is explicitly delimited by start- and end-tags.
  1320.  
  1321.  
  1322.  
  1323. 3.2. HTML Lexical Syntax
  1324.  
  1325.  
  1326.  
  1327.    SGML specifies an abstract syntax and a reference concrete syntax.
  1328.  
  1329.    Aside from certain quantities and capacities (e.g. the limit on the
  1330.  
  1331.    length of a name), all HTML documents use the reference concrete
  1332.  
  1333.    syntax. In particular, all markup characters are in the repertoire of
  1334.  
  1335.    [ISO-646]. Data characters are drawn from the document character set
  1336.  
  1337.    (see 6, "Characters, Words, and Paragraphs").
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347. Berners-Lee & Connolly      Standards Track                    [Page 12]
  1348.  
  1349.  
  1350.  
  1351. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.    A complete discussion of SGML parsing, e.g. the mapping of a sequence
  1358.  
  1359.    of characters to a sequence of tags and data, is left to the SGML
  1360.  
  1361.    standard[SGML]. This section is only a summary.
  1362.  
  1363.  
  1364.  
  1365. 3.2.1. Data Characters
  1366.  
  1367.  
  1368.  
  1369.    Any sequence of characters that do not constitute markup (see 9.6
  1370.  
  1371.    "Delimiter Recognition" of [SGML]) are mapped directly to strings of
  1372.  
  1373.    data characters. Some markup also maps to data character strings.
  1374.  
  1375.    Numeric character references map to single-character strings, via the
  1376.  
  1377.    document character set. Each reference to one of the general entities
  1378.  
  1379.    defined in the HTML DTD maps to a single-character string.
  1380.  
  1381.  
  1382.  
  1383.    For example,
  1384.  
  1385.  
  1386.  
  1387.     abc<def    => "abc","<","def"
  1388.  
  1389.     abc<def   => "abc","<","def"
  1390.  
  1391.  
  1392.  
  1393.    The terminating semicolon on entity or numeric character references
  1394.  
  1395.    is only necessary when the character following the reference would
  1396.  
  1397.    otherwise be recognized as part of the name (see 9.4.5 "Reference
  1398.  
  1399.    End" in [SGML]).
  1400.  
  1401.  
  1402.  
  1403.     abc < def     => "abc ","<"," def"
  1404.  
  1405.     abc < def    => "abc ","<"," def"
  1406.  
  1407.  
  1408.  
  1409.    An ampersand is only recognized as markup when it is followed by a
  1410.  
  1411.    letter or a `#' and a digit:
  1412.  
  1413.  
  1414.  
  1415.     abc & lt def    => "abc & lt def"
  1416.  
  1417.     abc &# 60 def    => "abc &# 60 def"
  1418.  
  1419.  
  1420.  
  1421.    A useful technique for translating plain text to HTML is to replace
  1422.  
  1423.    each '<', '&', and '>' by an entity reference or numeric character
  1424.  
  1425.    reference as follows:
  1426.  
  1427.  
  1428.  
  1429.                      ENTITY      NUMERIC
  1430.  
  1431.            CHARACTER REFERENCE   CHAR REF     CHARACTER DESCRIPTION
  1432.  
  1433.            --------- ----------  -----------  ---------------------
  1434.  
  1435.              &       &       &        Ampersand
  1436.  
  1437.              <       <        <        Less than
  1438.  
  1439.              >       >        >        Greater than
  1440.  
  1441.  
  1442.  
  1443.         NOTE - There are SGML mechanisms, CDATA and RCDATA
  1444.  
  1445.         declared content, that allow most `<', `>', and `&'
  1446.  
  1447.         characters to be entered without the use of entity
  1448.  
  1449.         references. Because these mechanisms tend to be used and
  1450.  
  1451.         implemented inconsistently, and because they conflict
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459. Berners-Lee & Connolly      Standards Track                    [Page 13]
  1460.  
  1461.  
  1462.  
  1463. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.         with techniques for reducing HTML to 7 bit ASCII for
  1470.  
  1471.         transport, they are deprecated in this version of HTML.
  1472.  
  1473.         See 5.5.2.1, "Example and Listing: XMP, LISTING".
  1474.  
  1475.  
  1476.  
  1477. 3.2.2. Tags
  1478.  
  1479.  
  1480.  
  1481.    Tags delimit elements such as headings, paragraphs, lists, character
  1482.  
  1483.    highlighting, and links. Most HTML elements are identified in a
  1484.  
  1485.    document as a start-tag, which gives the element name and attributes,
  1486.  
  1487.    followed by the content, followed by the end tag. Start-tags are
  1488.  
  1489.    delimited by `<' and `>'; end tags are delimited by `</' and `>'. An
  1490.  
  1491.    example is:
  1492.  
  1493.  
  1494.  
  1495.    <H1>This is a Heading</H1>
  1496.  
  1497.  
  1498.  
  1499.    Some elements only have a start-tag without an end-tag. For example,
  1500.  
  1501.    to create a line break, use the `<BR>' tag.  Additionally, the end
  1502.  
  1503.    tags of some other elements, such as Paragraph (`</P>'), List Item
  1504.  
  1505.    (`</LI>'), Definition Term (`</DT>'), and Definition Description
  1506.  
  1507.    (`</DD>') elements, may be omitted.
  1508.  
  1509.  
  1510.  
  1511.    The content of an element is a sequence of data character strings and
  1512.  
  1513.    nested elements. Some elements, such as anchors, cannot be nested.
  1514.  
  1515.    Anchors and character highlighting may be put inside other
  1516.  
  1517.    constructs. See the HTML DTD, 9.1, "HTML DTD" for full details.
  1518.  
  1519.  
  1520.  
  1521.       NOTE - The SGML declaration for HTML specifies SHORTTAG YES, which
  1522.  
  1523.       means that there are other valid syntaxes for tags, such as NET
  1524.  
  1525.       tags, `<EM/.../'; empty start tags, `<>'; and empty end-tags,
  1526.  
  1527.       `</>'. Until support for these idioms is widely deployed, their
  1528.  
  1529.       use is strongly discouraged.
  1530.  
  1531.  
  1532.  
  1533. 3.2.3. Names
  1534.  
  1535.  
  1536.  
  1537.    A name consists of a letter followed by letters, digits, periods, or
  1538.  
  1539.    hyphens. The length of a name is limited to 72 characters by the
  1540.  
  1541.    `NAMELEN' parameter in the SGML declaration for HTML, 9.5, "SGML
  1542.  
  1543.    Declaration for HTML". Element and attribute names are not case
  1544.  
  1545.    sensitive, but entity names are.  For example, `<BLOCKQUOTE>',
  1546.  
  1547.    `<BlockQuote>', and `<blockquote>' are equivalent, whereas `&' is
  1548.  
  1549.    different from `&'.
  1550.  
  1551.  
  1552.  
  1553.    In a start-tag, the element name must immediately follow the tag open
  1554.  
  1555.    delimiter `<'.
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571. Berners-Lee & Connolly      Standards Track                    [Page 14]
  1572.  
  1573.  
  1574.  
  1575. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581. 3.2.4. Attributes
  1582.  
  1583.  
  1584.  
  1585.    In a start-tag, white space and attributes are allowed between the
  1586.  
  1587.    element name and the closing delimiter. An attribute specification
  1588.  
  1589.    typically consists of an attribute name, an equal sign, and a value,
  1590.  
  1591.    though some attribute specifications may be just a name token. White
  1592.  
  1593.    space is allowed around the equal sign.
  1594.  
  1595.  
  1596.  
  1597.    The value of the attribute may be either:
  1598.  
  1599.  
  1600.  
  1601.         * A string literal, delimited by single quotes or double
  1602.  
  1603.         quotes and not containing any occurrences of the delimiting
  1604.  
  1605.         character.
  1606.  
  1607.  
  1608.  
  1609.             NOTE - Some historical implementations consider any
  1610.  
  1611.             occurrence of the `>' character to signal the end of
  1612.  
  1613.             a tag. For compatibility with such implementations,
  1614.  
  1615.             when `>' appears in an attribute value, it should be
  1616.  
  1617.             represented with a numeric character reference. For
  1618.  
  1619.             example, `<IMG SRC="eq1.jpg" alt="a>b">' should be
  1620.  
  1621.             written `<IMG SRC="eq1.jpg" alt="a>b">' or `<IMG
  1622.  
  1623.             SRC="eq1.jpg" alt="a>b">'.
  1624.  
  1625.  
  1626.  
  1627.         * A name token (a sequence of letters, digits, periods, or
  1628.  
  1629.         hyphens). Name tokens are not case sensitive.
  1630.  
  1631.  
  1632.  
  1633.             NOTE - Some historical implementations allow any
  1634.  
  1635.             character except space or `>' in a name token.
  1636.  
  1637.  
  1638.  
  1639.    In this example, <img> is the element name, src is the attribute
  1640.  
  1641.    name, and `http://host/dir/file.gif' is the attribute value:
  1642.  
  1643.  
  1644.  
  1645.    <img src='http://host/dir/file.gif'>
  1646.  
  1647.  
  1648.  
  1649.    A useful technique for computing an attribute value literal for a
  1650.  
  1651.    given string is to replace each quote and white space character by an
  1652.  
  1653.    entity reference or numeric character reference as follows:
  1654.  
  1655.  
  1656.  
  1657.                      ENTITY      NUMERIC
  1658.  
  1659.            CHARACTER REFERENCE   CHAR REF     CHARACTER DESCRIPTION
  1660.  
  1661.            --------- ----------  -----------  ---------------------
  1662.  
  1663.              HT                            Tab
  1664.  
  1665.              LF                           Line Feed
  1666.  
  1667.              CR                           Carriage Return
  1668.  
  1669.              SP                           Space
  1670.  
  1671.              "       "      "        Quotation mark
  1672.  
  1673.              &       &       &        Ampersand
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683. Berners-Lee & Connolly      Standards Track                    [Page 15]
  1684.  
  1685.  
  1686.  
  1687. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.    For example:
  1694.  
  1695.  
  1696.  
  1697.    <IMG SRC="image.jpg" alt="First "real" example">
  1698.  
  1699.  
  1700.  
  1701.    The `NAMELEN' parameter in the SGML declaration (9.5, "SGML
  1702.  
  1703.    Declaration for HTML") limits the length of an attribute value to
  1704.  
  1705.    1024 characters.
  1706.  
  1707.  
  1708.  
  1709.    Attributes such as ISMAP and COMPACT may be written using a minimized
  1710.  
  1711.    syntax (see 7.9.1.2 "Omitted Attribute Name" in [SGML]). The markup:
  1712.  
  1713.  
  1714.  
  1715.    <UL COMPACT="compact">
  1716.  
  1717.  
  1718.  
  1719.    can be written using a minimized syntax:
  1720.  
  1721.  
  1722.  
  1723.    <UL COMPACT>
  1724.  
  1725.  
  1726.  
  1727.    NOTE - Some historical implementations only understand the minimized
  1728.  
  1729.    syntax.
  1730.  
  1731.  
  1732.  
  1733. 3.2.5. Comments
  1734.  
  1735.  
  1736.  
  1737.    To include comments in an HTML document, use a comment declaration. A
  1738.  
  1739.    comment declaration consists of `<!' followed by zero or more
  1740.  
  1741.    comments followed by `>'. Each comment starts with `--' and includes
  1742.  
  1743.    all text up to and including the next occurrence of `--'. In a
  1744.  
  1745.    comment declaration, white space is allowed after each comment, but
  1746.  
  1747.    not before the first comment.  The entire comment declaration is
  1748.  
  1749.    ignored.
  1750.  
  1751.  
  1752.  
  1753.       NOTE - Some historical HTML implementations incorrectly consider
  1754.  
  1755.       any `>' character to be the termination of a comment.
  1756.  
  1757.  
  1758.  
  1759.    For example:
  1760.  
  1761.  
  1762.  
  1763.     <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  1764.  
  1765.     <HEAD>
  1766.  
  1767.     <TITLE>HTML Comment Example</TITLE>
  1768.  
  1769.     <!-- Id: html-sgml.sgm,v 1.5 1995/05/26 21:29:50 connolly Exp  -->
  1770.  
  1771.     <!-- another -- -- comment -->
  1772.  
  1773.     <!>
  1774.  
  1775.     </HEAD>
  1776.  
  1777.     <BODY>
  1778.  
  1779.     <p> <!- not a comment, just regular old data characters ->
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795. Berners-Lee & Connolly      Standards Track                    [Page 16]
  1796.  
  1797.  
  1798.  
  1799. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805. 3.3. HTML Public Text Identifiers
  1806.  
  1807.  
  1808.  
  1809.    To identify information as an HTML document conforming to this
  1810.  
  1811.    specification, each document must start with one of the following
  1812.  
  1813.    document type declarations.
  1814.  
  1815.  
  1816.  
  1817.    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  1818.  
  1819.  
  1820.  
  1821.    This document type declaration refers to the HTML DTD in 9.1, "HTML
  1822.  
  1823.    DTD".
  1824.  
  1825.  
  1826.  
  1827.       NOTE - If the body of a `text/html' message entity does not begin
  1828.  
  1829.       with a document type declaration, an HTML user agent should infer
  1830.  
  1831.       the above document type declaration.
  1832.  
  1833.  
  1834.  
  1835.    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 Level 2//EN">
  1836.  
  1837.  
  1838.  
  1839.    This document type declaration also refers to the HTML DTD which
  1840.  
  1841.    appears in 9.1, "HTML DTD".
  1842.  
  1843.  
  1844.  
  1845.    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 Level 1//EN">
  1846.  
  1847.  
  1848.  
  1849.    This document type declaration refers to the level 1 HTML DTD in 9.3,
  1850.  
  1851.    "Level 1 HTML DTD". Form elements must not occur in level 1
  1852.  
  1853.    documents.
  1854.  
  1855.  
  1856.  
  1857.    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 Strict//EN">
  1858.  
  1859.    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 1//EN">
  1860.  
  1861.  
  1862.  
  1863.    These two document type declarations refer to the HTML DTD in 9.2,
  1864.  
  1865.    "Strict HTML DTD" and 9.4, "Strict Level 1 HTML DTD". They refer to
  1866.  
  1867.    the more structurally rigid definition of HTML.
  1868.  
  1869.  
  1870.  
  1871.    HTML user agents may support other document types. In particular,
  1872.  
  1873.    they may support other formal public identifiers, or other document
  1874.  
  1875.    types altogether. They may support an internal declaration subset
  1876.  
  1877.    with supplemental entity, element, and other markup declarations.
  1878.  
  1879.  
  1880.  
  1881. 3.4. Example HTML Document
  1882.  
  1883.  
  1884.  
  1885.     <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  1886.  
  1887.     <HTML>
  1888.  
  1889.     <!-- Here's a good place to put a comment. -->
  1890.  
  1891.     <HEAD>
  1892.  
  1893.     <TITLE>Structural Example</TITLE>
  1894.  
  1895.     </HEAD><BODY>
  1896.  
  1897.     <H1>First Header</H1>
  1898.  
  1899.     <P>This is a paragraph in the example HTML file. Keep in mind
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907. Berners-Lee & Connolly      Standards Track                    [Page 17]
  1908.  
  1909.  
  1910.  
  1911. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.     that the title does not appear in the document text, but that
  1918.  
  1919.     the header (defined by H1) does.</P>
  1920.  
  1921.     <OL>
  1922.  
  1923.     <LI>First item in an ordered list.
  1924.  
  1925.     <LI>Second item in an ordered list.
  1926.  
  1927.       <UL COMPACT>
  1928.  
  1929.       <LI> Note that lists can be nested;
  1930.  
  1931.       <LI> Whitespace may be used to assist in reading the
  1932.  
  1933.            HTML source.
  1934.  
  1935.       </UL>
  1936.  
  1937.     <LI>Third item in an ordered list.
  1938.  
  1939.     </OL>
  1940.  
  1941.     <P>This is an additional paragraph. Technically, end tags are
  1942.  
  1943.     not required for paragraphs, although they are allowed. You can
  1944.  
  1945.     include character highlighting in a paragraph. <EM>This sentence
  1946.  
  1947.     of the paragraph is emphasized.</EM> Note that the </P>
  1948.  
  1949.     end tag has been omitted.
  1950.  
  1951.     <P>
  1952.  
  1953.     <IMG SRC ="triangle.xbm" alt="Warning: ">
  1954.  
  1955.     Be sure to read these <b>bold instructions</b>.
  1956.  
  1957.     </BODY></HTML>
  1958.  
  1959.  
  1960.  
  1961. 4. HTML as an Internet Media Type
  1962.  
  1963.  
  1964.  
  1965.    An HTML user agent allows users to interact with resources which have
  1966.  
  1967.    HTML representations. At a minimum, it must allow users to examine
  1968.  
  1969.    and navigate the content of HTML level 1 documents. HTML user agents
  1970.  
  1971.    should be able to preserve all formatting distinctions represented in
  1972.  
  1973.    an HTML document, and be able to simultaneously present resources
  1974.  
  1975.    referred to by IMG elements (they may ignore some formatting
  1976.  
  1977.    distinctions or IMG resources at the request of the user). Level 2
  1978.  
  1979.    HTML user agents should support form entry and submission.
  1980.  
  1981.  
  1982.  
  1983. 4.1. text/html media type
  1984.  
  1985.  
  1986.  
  1987.    This specification defines the Internet Media Type [IMEDIA] (formerly
  1988.  
  1989.    referred to as the Content Type [MIME]) called `text/html'. The
  1990.  
  1991.    following is to be registered with [IANA].
  1992.  
  1993.  
  1994.  
  1995.     Media Type name
  1996.  
  1997.             text
  1998.  
  1999.  
  2000.  
  2001.     Media subtype name
  2002.  
  2003.             html
  2004.  
  2005.  
  2006.  
  2007.     Required parameters
  2008.  
  2009.             none
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019. Berners-Lee & Connolly      Standards Track                    [Page 18]
  2020.  
  2021.  
  2022.  
  2023. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.     Optional parameters
  2030.  
  2031.             level, charset
  2032.  
  2033.  
  2034.  
  2035.     Encoding considerations
  2036.  
  2037.             any encoding is allowed
  2038.  
  2039.  
  2040.  
  2041.     Security considerations
  2042.  
  2043.             see 10, "Security Considerations"
  2044.  
  2045.  
  2046.  
  2047.     The optional parameters are defined as follows:
  2048.  
  2049.  
  2050.  
  2051.     Level
  2052.  
  2053.             The level parameter specifies the feature set used in
  2054.  
  2055.             the document. The level is an integer number, implying
  2056.  
  2057.             that any features of same or lower level may be present
  2058.  
  2059.             in the document. Level 1 is all features defined in this
  2060.  
  2061.             specification except those that require the <FORM>
  2062.  
  2063.             element. Level 2 includes form processing. Level 2 is
  2064.  
  2065.             the default.
  2066.  
  2067.  
  2068.  
  2069.     Charset
  2070.  
  2071.             The charset parameter (as defined in section 7.1.1 of
  2072.  
  2073.             RFC 1521[MIME]) may be given to specify the character
  2074.  
  2075.             encoding scheme used to represent the HTML document as a
  2076.  
  2077.             sequence of octets. The default value is outside the
  2078.  
  2079.             scope of this specification; but for example, the
  2080.  
  2081.             default is `US-ASCII' in the context of MIME mail, and
  2082.  
  2083.             `ISO-8859-1' in the context of HTTP [HTTP].
  2084.  
  2085.  
  2086.  
  2087. 4.2. HTML Document Representation
  2088.  
  2089.  
  2090.  
  2091.    A message entity with a content type of `text/html' represents an
  2092.  
  2093.    HTML document, consisting of a single text entity. The `charset'
  2094.  
  2095.    parameter (whether implicit or explicit) identifies a character
  2096.  
  2097.    encoding scheme. The text entity consists of the characters
  2098.  
  2099.    determined by this character encoding scheme and the octets of the
  2100.  
  2101.    body of the message entity.
  2102.  
  2103.  
  2104.  
  2105. 4.2.1. Undeclared Markup Error Handling
  2106.  
  2107.  
  2108.  
  2109.    To facilitate experimentation and interoperability between
  2110.  
  2111.    implementations of various versions of HTML, the installed base of
  2112.  
  2113.    HTML user agents supports a superset of the HTML 2.0 language by
  2114.  
  2115.    reducing it to HTML 2.0: markup in the form of a start-tag or end-
  2116.  
  2117.    tag, whose generic identifier is not declared is mapped to nothing
  2118.  
  2119.    during tokenization. Undeclared attributes are treated similarly. The
  2120.  
  2121.    entire attribute specification of an unknown attribute (i.e., the
  2122.  
  2123.    unknown attribute and its value, if any) should be ignored. On the
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131. Berners-Lee & Connolly      Standards Track                    [Page 19]
  2132.  
  2133.  
  2134.  
  2135. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.    other hand, references to undeclared entities should be treated as
  2142.  
  2143.    data characters.
  2144.  
  2145.  
  2146.  
  2147.    For example:
  2148.  
  2149.  
  2150.  
  2151.     <div class=chapter><h1>foo</h1><p>...</div>
  2152.  
  2153.       => <H1>,"foo",</H1>,<P>,"..."
  2154.  
  2155.     xxx <P ID=z23> yyy
  2156.  
  2157.       => "xxx ",<P>," yyy
  2158.  
  2159.     Let α & β be finite sets.
  2160.  
  2161.       => "Let α & β be finite sets."
  2162.  
  2163.  
  2164.  
  2165.    Support for notifying the user of such errors is encouraged.
  2166.  
  2167.  
  2168.  
  2169.    Information providers are warned that this convention is not binding:
  2170.  
  2171.    unspecified behavior may result, as such markup does not conform to
  2172.  
  2173.    this specification.
  2174.  
  2175.  
  2176.  
  2177. 4.2.2. Conventional Representation of Newlines
  2178.  
  2179.  
  2180.  
  2181.    SGML specifies that a text entity is a sequence of records, each
  2182.  
  2183.    beginning with a record start character and ending with a record end
  2184.  
  2185.    character (code positions 10 and 13 respectively) (section 7.6.1,
  2186.  
  2187.    "Record Boundaries" in [SGML]).
  2188.  
  2189.  
  2190.  
  2191.    [MIME] specifies that a body of type `text/*' is a sequence of lines,
  2192.  
  2193.    each terminated by CRLF, that is, octets 13, 10.
  2194.  
  2195.  
  2196.  
  2197.    In practice, HTML documents are frequently represented and
  2198.  
  2199.    transmitted using an end of line convention that depends on the
  2200.  
  2201.    conventions of the source of the document; frequently, that
  2202.  
  2203.    representation consists of CR only, LF only, or a CR LF sequence.
  2204.  
  2205.    Hence the decoding of the octets will often result in a text entity
  2206.  
  2207.    with some missing record start and record end characters.
  2208.  
  2209.  
  2210.  
  2211.    Since there is no ambiguity, HTML user agents are encouraged to infer
  2212.  
  2213.    the missing record start and end characters.
  2214.  
  2215.  
  2216.  
  2217.    An HTML user agent should treat end of line in any of its variations
  2218.  
  2219.    as a word space in all contexts except preformatted text. Within
  2220.  
  2221.    preformatted text, an HTML user agent should treat any of the three
  2222.  
  2223.    common representations of end-of-line as starting a new line.
  2224.  
  2225.  
  2226.  
  2227. 5. Document Structure
  2228.  
  2229.  
  2230.  
  2231.    An HTML document is a tree of elements, including a head and body,
  2232.  
  2233.    headings, paragraphs, lists, etc. Form elements are discussed in 8,
  2234.  
  2235.    "Forms".
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243. Berners-Lee & Connolly      Standards Track                    [Page 20]
  2244.  
  2245.  
  2246.  
  2247. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253. 5.1. Document Element: HTML
  2254.  
  2255.  
  2256.  
  2257.    The HTML document element consists of a head and a body, much like a
  2258.  
  2259.    memo or a mail message. The head contains the title and optional
  2260.  
  2261.    elements. The body is a text flow consisting of paragraphs, lists,
  2262.  
  2263.    and other elements.
  2264.  
  2265.  
  2266.  
  2267. 5.2. Head: HEAD
  2268.  
  2269.  
  2270.  
  2271.    The head of an HTML document is an unordered collection of
  2272.  
  2273.    information about the document. For example:
  2274.  
  2275.  
  2276.  
  2277.     <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  2278.  
  2279.     <HEAD>
  2280.  
  2281.     <TITLE>Introduction to HTML</TITLE>
  2282.  
  2283.     </HEAD>
  2284.  
  2285.     ...
  2286.  
  2287.  
  2288.  
  2289. 5.2.1. Title: TITLE
  2290.  
  2291.  
  2292.  
  2293.    Every HTML document must contain a <TITLE> element.
  2294.  
  2295.  
  2296.  
  2297.    The title should identify the contents of the document in a global
  2298.  
  2299.    context. A short title, such as "Introduction" may be meaningless out
  2300.  
  2301.    of context. A title such as "Introduction to HTML Elements" is more
  2302.  
  2303.    appropriate.
  2304.  
  2305.  
  2306.  
  2307.       NOTE - The length of a title is not limited; however, long titles
  2308.  
  2309.       may be truncated in some applications. To minimize this
  2310.  
  2311.       possibility, titles should be fewer than 64 characters.
  2312.  
  2313.  
  2314.  
  2315.    A user agent may display the title of a document in a history list or
  2316.  
  2317.    as a label for the window displaying the document. This differs from
  2318.  
  2319.    headings (5.4, "Headings: H1 ... H6"), which are typically displayed
  2320.  
  2321.    within the body text flow.
  2322.  
  2323.  
  2324.  
  2325. 5.2.2. Base Address: BASE
  2326.  
  2327.  
  2328.  
  2329.    The optional <BASE> element provides a base address for interpreting
  2330.  
  2331.    relative URLs when the document is read out of context (see 7,
  2332.  
  2333.    "Hyperlinks"). The value of the HREF attribute must be an absolute
  2334.  
  2335.    URI.
  2336.  
  2337.  
  2338.  
  2339. 5.2.3. Keyword Index: ISINDEX
  2340.  
  2341.  
  2342.  
  2343.    The <ISINDEX> element indicates that the user agent should allow the
  2344.  
  2345.    user to search an index by giving keywords. See 7.5, "Queries and
  2346.  
  2347.    Indexes" for details.
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355. Berners-Lee & Connolly      Standards Track                    [Page 21]
  2356.  
  2357.  
  2358.  
  2359. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365. 5.2.4. Link: LINK
  2366.  
  2367.  
  2368.  
  2369.    The <LINK> element represents a hyperlink (see 7, "Hyperlinks").  Any
  2370.  
  2371.    number of LINK elements may occur in the <HEAD> element of an HTML
  2372.  
  2373.    document. It has the same attributes as the <A> element (see 5.7.3,
  2374.  
  2375.    "Anchor: A").
  2376.  
  2377.  
  2378.  
  2379.    The <LINK> element is typically used to indicate authorship, related
  2380.  
  2381.    indexes and glossaries, older or more recent versions, document
  2382.  
  2383.    hierarchy, associated resources such as style sheets, etc.
  2384.  
  2385.  
  2386.  
  2387. 5.2.5. Associated Meta-information: META
  2388.  
  2389.  
  2390.  
  2391.    The <META> element is an extensible container for use in identifying
  2392.  
  2393.    specialized document meta-information.  Meta-information has two main
  2394.  
  2395.    functions:
  2396.  
  2397.  
  2398.  
  2399.         * to provide a means to discover that the data set exists
  2400.  
  2401.         and how it might be obtained or accessed; and
  2402.  
  2403.  
  2404.  
  2405.         * to document the content, quality, and features of a data
  2406.  
  2407.         set, indicating its fitness for use.
  2408.  
  2409.  
  2410.  
  2411.    Each <META> element specifies a name/value pair. If multiple META
  2412.  
  2413.    elements are provided with the same name, their combined contents--
  2414.  
  2415.    concatenated as a comma-separated list--is the value associated with
  2416.  
  2417.    that name.
  2418.  
  2419.  
  2420.  
  2421.         NOTE - The <META> element should not be used where a
  2422.  
  2423.         specific element, such as <TITLE>, would be more
  2424.  
  2425.         appropriate. Rather than a <META> element with a URI as
  2426.  
  2427.         the value of the CONTENT attribute, use a <LINK>
  2428.  
  2429.         element.
  2430.  
  2431.  
  2432.  
  2433.    HTTP servers may read the content of the document <HEAD> to generate
  2434.  
  2435.    header fields corresponding to any elements defining a value for the
  2436.  
  2437.    attribute HTTP-EQUIV.
  2438.  
  2439.  
  2440.  
  2441.         NOTE - The method by which the server extracts document
  2442.  
  2443.         meta-information is unspecified and not mandatory. The
  2444.  
  2445.         <META> element only provides an extensible mechanism for
  2446.  
  2447.         identifying and embedding document meta-information --
  2448.  
  2449.         how it may be used is up to the individual server
  2450.  
  2451.         implementation and the HTML user agent.
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467. Berners-Lee & Connolly      Standards Track                    [Page 22]
  2468.  
  2469.  
  2470.  
  2471. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.     Attributes of the META element:
  2478.  
  2479.  
  2480.  
  2481.     HTTP-EQUIV
  2482.  
  2483.             binds the element to an HTTP header field. An HTTP
  2484.  
  2485.             server may use this information to process the document.
  2486.  
  2487.             In particular, it may include a header field in the
  2488.  
  2489.             responses to requests for this document: the header name
  2490.  
  2491.             is taken from the HTTP-EQUIV attribute value, and the
  2492.  
  2493.             header value is taken from the value of the CONTENT
  2494.  
  2495.             attribute. HTTP header names are not case sensitive.
  2496.  
  2497.  
  2498.  
  2499.     NAME
  2500.  
  2501.             specifies the name of the name/value pair. If not
  2502.  
  2503.             present, HTTP-EQUIV gives the name.
  2504.  
  2505.  
  2506.  
  2507.     CONTENT
  2508.  
  2509.             specifies the value of the name/value pair.
  2510.  
  2511.  
  2512.  
  2513.     Examples
  2514.  
  2515.  
  2516.  
  2517.     If the document contains:
  2518.  
  2519.  
  2520.  
  2521.     <META HTTP-EQUIV="Expires"
  2522.  
  2523.           CONTENT="Tue, 04 Dec 1993 21:29:02 GMT">
  2524.  
  2525.     <meta http-equiv="Keywords" CONTENT="Fred">
  2526.  
  2527.     <META HTTP-EQUIV="Reply-to"
  2528.  
  2529.           content="fielding@ics.uci.edu (Roy Fielding)">
  2530.  
  2531.     <Meta Http-equiv="Keywords" CONTENT="Barney">
  2532.  
  2533.  
  2534.  
  2535.     then the server may include the following header fields:
  2536.  
  2537.  
  2538.  
  2539.     Expires: Tue, 04 Dec 1993 21:29:02 GMT
  2540.  
  2541.     Keywords: Fred, Barney
  2542.  
  2543.     Reply-to: fielding@ics.uci.edu (Roy Fielding)
  2544.  
  2545.  
  2546.  
  2547.     as part of the HTTP response to a `GET' or `HEAD' request for
  2548.  
  2549.     that document.
  2550.  
  2551.  
  2552.  
  2553.     An HTTP server must not use the <META> element to form an HTTP
  2554.  
  2555.     response header unless the HTTP-EQUIV attribute is present.
  2556.  
  2557.  
  2558.  
  2559.     An HTTP server may disregard any <META> elements that specify
  2560.  
  2561.     information controlled by the HTTP server, for example `Server',
  2562.  
  2563.  
  2564.  
  2565.     `Date', and `Last-modified'.
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579. Berners-Lee & Connolly      Standards Track                    [Page 23]
  2580.  
  2581.  
  2582.  
  2583. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589. 5.2.6. Next Id: NEXTID
  2590.  
  2591.  
  2592.  
  2593.    The <NEXTID> element is included for historical reasons only.  HTML
  2594.  
  2595.    documents should not contain <NEXTID> elements.
  2596.  
  2597.  
  2598.  
  2599.    The <NEXTID> element gives a hint for the name to use for a new <A>
  2600.  
  2601.    element when editing an HTML document. It should be distinct from all
  2602.  
  2603.    NAME attribute values on <A> elements. For example:
  2604.  
  2605.  
  2606.  
  2607.    <NEXTID N=Z27>
  2608.  
  2609.  
  2610.  
  2611. 5.3. Body: BODY
  2612.  
  2613.  
  2614.  
  2615.    The <BODY> element contains the text flow of the document, including
  2616.  
  2617.    headings, paragraphs, lists, etc.
  2618.  
  2619.  
  2620.  
  2621.    For example:
  2622.  
  2623.  
  2624.  
  2625.     <BODY>
  2626.  
  2627.     <h1>Important Stuff</h1>
  2628.  
  2629.     <p>Explanation about important stuff...
  2630.  
  2631.     </BODY>
  2632.  
  2633.  
  2634.  
  2635. 5.4. Headings: H1 ... H6
  2636.  
  2637.  
  2638.  
  2639.    The six heading elements, <H1> through <H6>, denote section headings.
  2640.  
  2641.    Although the order and occurrence of headings is not constrained by
  2642.  
  2643.    the HTML DTD, documents should not skip levels (for example, from H1
  2644.  
  2645.    to H3), as converting such documents to other representations is
  2646.  
  2647.    often problematic.
  2648.  
  2649.  
  2650.  
  2651.    Example of use:
  2652.  
  2653.  
  2654.  
  2655.     <H1>This is a heading</H1>
  2656.  
  2657.     Here is some text
  2658.  
  2659.     <H2>Second level heading</H2>
  2660.  
  2661.     Here is some more text.
  2662.  
  2663.  
  2664.  
  2665.     Typical renderings are:
  2666.  
  2667.  
  2668.  
  2669.     H1
  2670.  
  2671.             Bold, very-large font, centered. One or two blank lines
  2672.  
  2673.             above and below.
  2674.  
  2675.  
  2676.  
  2677.     H2
  2678.  
  2679.             Bold, large font, flush-left. One or two blank lines
  2680.  
  2681.             above and below.
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691. Berners-Lee & Connolly      Standards Track                    [Page 24]
  2692.  
  2693.  
  2694.  
  2695. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.     H3
  2702.  
  2703.             Italic, large font, slightly indented from the left
  2704.  
  2705.             margin. One or two blank lines above and below.
  2706.  
  2707.  
  2708.  
  2709.     H4
  2710.  
  2711.             Bold, normal font, indented more than H3. One blank line
  2712.  
  2713.             above and below.
  2714.  
  2715.  
  2716.  
  2717.     H5
  2718.  
  2719.             Italic, normal font, indented as H4. One blank line
  2720.  
  2721.             above.
  2722.  
  2723.  
  2724.  
  2725.     H6
  2726.  
  2727.             Bold, indented same as normal text, more than H5. One
  2728.  
  2729.             blank line above.
  2730.  
  2731.  
  2732.  
  2733. 5.5. Block Structuring Elements
  2734.  
  2735.  
  2736.  
  2737.    Block structuring elements include paragraphs, lists, and block
  2738.  
  2739.    quotes. They must not contain heading elements, but they may contain
  2740.  
  2741.    phrase markup, and in some cases, they may be nested.
  2742.  
  2743.  
  2744.  
  2745. 5.5.1. Paragraph: P
  2746.  
  2747.  
  2748.  
  2749.    The <P> element indicates a paragraph. The exact indentation, leading
  2750.  
  2751.    space, etc. of a paragraph is not specified and may be a function of
  2752.  
  2753.    other tags, style sheets, etc.
  2754.  
  2755.  
  2756.  
  2757.    Typically, paragraphs are surrounded by a vertical space of one line
  2758.  
  2759.    or half a line. The first line in a paragraph is indented in some
  2760.  
  2761.    cases.
  2762.  
  2763.  
  2764.  
  2765.    Example of use:
  2766.  
  2767.  
  2768.  
  2769.     <H1>This Heading Precedes the Paragraph</H1>
  2770.  
  2771.     <P>This is the text of the first paragraph.
  2772.  
  2773.     <P>This is the text of the second paragraph. Although you do not
  2774.  
  2775.     need to start paragraphs on new lines, maintaining this
  2776.  
  2777.     convention facilitates document maintenance.</P>
  2778.  
  2779.     <P>This is the text of a third paragraph.</P>
  2780.  
  2781.  
  2782.  
  2783. 5.5.2. Preformatted Text: PRE
  2784.  
  2785.  
  2786.  
  2787.    The <PRE> element represents a character cell block of text and is
  2788.  
  2789.    suitable for text that has been formatted for a monospaced font.
  2790.  
  2791.  
  2792.  
  2793.    The <PRE> tag may be used with the optional WIDTH attribute. The
  2794.  
  2795.    WIDTH attribute specifies the maximum number of characters for a line
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803. Berners-Lee & Connolly      Standards Track                    [Page 25]
  2804.  
  2805.  
  2806.  
  2807. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.    and allows the HTML user agent to select a suitable font and
  2814.  
  2815.    indentation.
  2816.  
  2817.  
  2818.  
  2819.    Within preformatted text:
  2820.  
  2821.  
  2822.  
  2823.         * Line breaks within the text are rendered as a move to the
  2824.  
  2825.         beginning of the next line.
  2826.  
  2827.  
  2828.  
  2829.             NOTE - References to the "beginning of a new line"
  2830.  
  2831.             do not imply that the renderer is forbidden from
  2832.  
  2833.             using a constant left indent for rendering
  2834.  
  2835.             preformatted text. The left indent may be
  2836.  
  2837.             constrained by the width required.
  2838.  
  2839.  
  2840.  
  2841.         * Anchor elements and phrase markup may be used.
  2842.  
  2843.  
  2844.  
  2845.             NOTE - Constraints on the processing of <PRE>
  2846.  
  2847.             content may limit or prevent the ability of the HTML
  2848.  
  2849.             user agent to faithfully render phrase markup.
  2850.  
  2851.  
  2852.  
  2853.         * Elements that define paragraph formatting (headings,
  2854.  
  2855.         address, etc.) must not be used.
  2856.  
  2857.  
  2858.  
  2859.             NOTE - Some historical documents contain <P> tags in
  2860.  
  2861.             <PRE> elements. User agents are encouraged to treat
  2862.  
  2863.             this as a line break. A <P> tag followed by a
  2864.  
  2865.             newline character should produce only one line
  2866.  
  2867.             break, not a line break plus a blank line.
  2868.  
  2869.  
  2870.  
  2871.         * The horizontal tab character (code position 9 in the HTML
  2872.  
  2873.         document character set) must be interpreted as the smallest
  2874.  
  2875.         positive nonzero number of spaces which will leave the
  2876.  
  2877.         number of characters so far on the line as a multiple of 8.
  2878.  
  2879.         Documents should not contain tab characters, as they are not
  2880.  
  2881.         supported consistently.
  2882.  
  2883.  
  2884.  
  2885.     Example of use:
  2886.  
  2887.  
  2888.  
  2889.     <PRE>
  2890.  
  2891.     Line 1.
  2892.  
  2893.            Line 2 is to the right of line 1.     <a href="abc">abc</a>
  2894.  
  2895.            Line 3 aligns with line 2.            <a href="def">def</a>
  2896.  
  2897.     </PRE>
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915. Berners-Lee & Connolly      Standards Track                    [Page 26]
  2916.  
  2917.  
  2918.  
  2919. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925. 5.5.2.1. Example and Listing: XMP, LISTING
  2926.  
  2927.  
  2928.  
  2929.    The <XMP> and <LISTING> elements are similar to the <PRE> element,
  2930.  
  2931.    but they have a different syntax. Their content is declared as CDATA,
  2932.  
  2933.    which means that no markup except the end-tag open delimiter-in-
  2934.  
  2935.    context is recognized (see 9.6 "Delimiter Recognition" of [SGML]).
  2936.  
  2937.  
  2938.  
  2939.       NOTE - In a previous draft of the HTML specification, the syntax
  2940.  
  2941.       of <XMP> and <LISTING> elements allowed closing tags to be treated
  2942.  
  2943.       as data characters, as long as the tag name was not <XMP> or
  2944.  
  2945.       <LISTING>, respectively.
  2946.  
  2947.  
  2948.  
  2949.    Since CDATA declared content has a number of unfortunate interactions
  2950.  
  2951.    with processing techniques and tends to be used and implemented
  2952.  
  2953.    inconsistently, HTML documents should not contain <XMP> nor <LISTING>
  2954.  
  2955.    elements -- the <PRE> tag is more expressive and more consistently
  2956.  
  2957.    supported.
  2958.  
  2959.  
  2960.  
  2961.    The <LISTING> element should be rendered so that at least 132
  2962.  
  2963.    characters fit on a line. The <XMP> element should be rendered so
  2964.  
  2965.    that at least 80 characters fit on a line but is otherwise identical
  2966.  
  2967.    to the <LISTING> element.
  2968.  
  2969.  
  2970.  
  2971.       NOTE - In a previous draft, HTML included a <PLAINTEXT> element
  2972.  
  2973.       that is similar to the <LISTING> element, except that there is no
  2974.  
  2975.       closing tag: all characters after the <PLAINTEXT> start-tag are
  2976.  
  2977.       data.
  2978.  
  2979.  
  2980.  
  2981. 5.5.3. Address: ADDRESS
  2982.  
  2983.  
  2984.  
  2985.    The <ADDRESS> element contains such information as address, signature
  2986.  
  2987.    and authorship, often at the beginning or end of the body of a
  2988.  
  2989.    document.
  2990.  
  2991.  
  2992.  
  2993.    Typically, the <ADDRESS> element is rendered in an italic typeface
  2994.  
  2995.    and may be indented.
  2996.  
  2997.  
  2998.  
  2999.    Example of use:
  3000.  
  3001.  
  3002.  
  3003.     <ADDRESS>
  3004.  
  3005.     Newsletter editor<BR>
  3006.  
  3007.     J.R. Brown<BR>
  3008.  
  3009.     JimquickPost News, Jimquick, CT 01234<BR>
  3010.  
  3011.     Tel (123) 456 7890
  3012.  
  3013.     </ADDRESS>
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027. Berners-Lee & Connolly      Standards Track                    [Page 27]
  3028.  
  3029.  
  3030.  
  3031. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037. 5.5.4. Block Quote: BLOCKQUOTE
  3038.  
  3039.  
  3040.  
  3041.    The <BLOCKQUOTE> element contains text quoted from another source.
  3042.  
  3043.  
  3044.  
  3045.    A typical rendering might be a slight extra left and right indent,
  3046.  
  3047.    and/or italic font. The <BLOCKQUOTE> typically provides space above
  3048.  
  3049.    and below the quote.
  3050.  
  3051.  
  3052.  
  3053.    Single-font rendition may reflect the quotation style of Internet
  3054.  
  3055.    mail by putting a vertical line of graphic characters, such as the
  3056.  
  3057.    greater than symbol (>), in the left margin.
  3058.  
  3059.  
  3060.  
  3061.    Example of use:
  3062.  
  3063.  
  3064.  
  3065.     I think the play ends
  3066.  
  3067.     <BLOCKQUOTE>
  3068.  
  3069.     <P>Soft you now, the fair Ophelia. Nymph, in thy orisons, be all
  3070.  
  3071.     my sins remembered.
  3072.  
  3073.     </BLOCKQUOTE>
  3074.  
  3075.     but I am not sure.
  3076.  
  3077.  
  3078.  
  3079. 5.6. List Elements
  3080.  
  3081.  
  3082.  
  3083.    HTML includes a number of list elements. They may be used in
  3084.  
  3085.    combination; for example, a <OL> may be nested in an <LI> element of
  3086.  
  3087.    a <UL>.
  3088.  
  3089.  
  3090.  
  3091.    The COMPACT attribute suggests that a compact rendering be used.
  3092.  
  3093.  
  3094.  
  3095. 5.6.1. Unordered List: UL, LI
  3096.  
  3097.  
  3098.  
  3099.    The <UL> represents a list of items -- typically rendered as a
  3100.  
  3101.    bulleted list.
  3102.  
  3103.  
  3104.  
  3105.    The content of a <UL> element is a sequence of <LI> elements.  For
  3106.  
  3107.    example:
  3108.  
  3109.  
  3110.  
  3111.     <UL>
  3112.  
  3113.     <LI>First list item
  3114.  
  3115.     <LI>Second list item
  3116.  
  3117.      <p>second paragraph of second item
  3118.  
  3119.     <LI>Third list item
  3120.  
  3121.     </UL>
  3122.  
  3123.  
  3124.  
  3125. 5.6.2. Ordered List: OL
  3126.  
  3127.  
  3128.  
  3129.    The <OL> element represents an ordered list of items, sorted by
  3130.  
  3131.    sequence or order of importance. It is typically rendered as a
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.  
  3139. Berners-Lee & Connolly      Standards Track                    [Page 28]
  3140.  
  3141.  
  3142.  
  3143. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.    numbered list.
  3150.  
  3151.  
  3152.  
  3153.    The content of a <OL> element is a sequence of <LI> elements.  For
  3154.  
  3155.    example:
  3156.  
  3157.  
  3158.  
  3159.     <OL>
  3160.  
  3161.     <LI>Click the Web button to open URI window.
  3162.  
  3163.     <LI>Enter the URI number in the text field of the Open URI
  3164.  
  3165.     window. The Web document you specified is displayed.
  3166.  
  3167.       <ol>
  3168.  
  3169.        <li>substep 1
  3170.  
  3171.        <li>substep 2
  3172.  
  3173.       </ol>
  3174.  
  3175.     <LI>Click highlighted text to move from one link to another.
  3176.  
  3177.     </OL>
  3178.  
  3179.  
  3180.  
  3181. 5.6.3. Directory List: DIR
  3182.  
  3183.  
  3184.  
  3185.    The <DIR> element is similar to the <UL> element. It represents a
  3186.  
  3187.    list of short items, typically up to 20 characters each. Items in a
  3188.  
  3189.    directory list may be arranged in columns, typically 24 characters
  3190.  
  3191.    wide.
  3192.  
  3193.  
  3194.  
  3195.    The content of a <DIR> element is a sequence of <LI> elements.
  3196.  
  3197.    Nested block elements are not allowed in the content of <DIR>
  3198.  
  3199.    elements. For example:
  3200.  
  3201.  
  3202.  
  3203.     <DIR>
  3204.  
  3205.     <LI>A-H<LI>I-M
  3206.  
  3207.     <LI>M-R<LI>S-Z
  3208.  
  3209.     </DIR>
  3210.  
  3211.  
  3212.  
  3213. 5.6.4. Menu List: MENU
  3214.  
  3215.  
  3216.  
  3217.    The <MENU> element is a list of items with typically one line per
  3218.  
  3219.    item. The menu list style is typically more compact than the style of
  3220.  
  3221.    an unordered list.
  3222.  
  3223.  
  3224.  
  3225.    The content of a <MENU> element is a sequence of <LI> elements.
  3226.  
  3227.    Nested block elements are not allowed in the content of <MENU>
  3228.  
  3229.    elements. For example:
  3230.  
  3231.  
  3232.  
  3233.     <MENU>
  3234.  
  3235.     <LI>First item in the list.
  3236.  
  3237.     <LI>Second item in the list.
  3238.  
  3239.     <LI>Third item in the list.
  3240.  
  3241.     </MENU>
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251. Berners-Lee & Connolly      Standards Track                    [Page 29]
  3252.  
  3253.  
  3254.  
  3255. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261. 5.6.5. Definition List: DL, DT, DD
  3262.  
  3263.  
  3264.  
  3265.    A definition list is a list of terms and corresponding definitions.
  3266.  
  3267.    Definition lists are typically formatted with the term flush-left and
  3268.  
  3269.    the definition, formatted paragraph style, indented after the term.
  3270.  
  3271.  
  3272.  
  3273.    The content of a <DL> element is a sequence of <DT> elements and/or
  3274.  
  3275.    <DD> elements, usually in pairs. Multiple <DT> may be paired with a
  3276.  
  3277.    single <DD> element. Documents should not contain multiple
  3278.  
  3279.    consecutive <DD> elements.
  3280.  
  3281.  
  3282.  
  3283.    Example of use:
  3284.  
  3285.  
  3286.  
  3287.     <DL>
  3288.  
  3289.     <DT>Term<DD>This is the definition of the first term.
  3290.  
  3291.     <DT>Term<DD>This is the definition of the second term.
  3292.  
  3293.     </DL>
  3294.  
  3295.  
  3296.  
  3297.    If the DT term does not fit in the DT column (typically one third of
  3298.  
  3299.    the display area), it may be extended across the page with the DD
  3300.  
  3301.    section moved to the next line, or it may be wrapped onto successive
  3302.  
  3303.    lines of the left hand column.
  3304.  
  3305.  
  3306.  
  3307.    The optional COMPACT attribute suggests that a compact rendering be
  3308.  
  3309.    used, because the list items are small and/or the entire list is
  3310.  
  3311.    large.
  3312.  
  3313.  
  3314.  
  3315.    Unless the COMPACT attribute is present, an HTML user agent may leave
  3316.  
  3317.    white space between successive DT, DD pairs. The COMPACT attribute
  3318.  
  3319.    may also reduce the width of the left-hand (DT) column.
  3320.  
  3321.  
  3322.  
  3323.     <DL COMPACT>
  3324.  
  3325.     <DT>Term<DD>This is the first definition in compact format.
  3326.  
  3327.     <DT>Term<DD>This is the second definition in compact format.
  3328.  
  3329.     </DL>
  3330.  
  3331.  
  3332.  
  3333. 5.7. Phrase Markup
  3334.  
  3335.  
  3336.  
  3337.    Phrases may be marked up according to idiomatic usage, typographic
  3338.  
  3339.    appearance, or for use as hyperlink anchors.
  3340.  
  3341.  
  3342.  
  3343.    User agents must render highlighted phrases distinctly from plain
  3344.  
  3345.    text. Additionally, <EM> content must be rendered as distinct from
  3346.  
  3347.    <STRONG> content, and <B> content must rendered as distinct from <I>
  3348.  
  3349.    content.
  3350.  
  3351.  
  3352.  
  3353.    Phrase elements may be nested within the content of other phrase
  3354.  
  3355.    elements; however, HTML user agents may render nested phrase elements
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363. Berners-Lee & Connolly      Standards Track                    [Page 30]
  3364.  
  3365.  
  3366.  
  3367. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.    indistinctly from non-nested elements:
  3374.  
  3375.  
  3376.  
  3377.    plain <B>bold <I>italic</I></B> may be rendered
  3378.  
  3379.    the same as plain <B>bold </B><I>italic</I>
  3380.  
  3381.  
  3382.  
  3383. 5.7.1. Idiomatic Elements
  3384.  
  3385.  
  3386.  
  3387.    Phrases may be marked up to indicate certain idioms.
  3388.  
  3389.  
  3390.  
  3391.       NOTE - User agents may support the <DFN> element, not included in
  3392.  
  3393.       this specification, as it has been deployed to some extent. It is
  3394.  
  3395.       used to indicate the defining instance of a term, and it is
  3396.  
  3397.       typically rendered in italic or bold italic.
  3398.  
  3399.  
  3400.  
  3401. 5.7.1.1. Citation: CITE
  3402.  
  3403.  
  3404.  
  3405.       The <CITE> element is used to indicate the title of a book or
  3406.  
  3407.       other citation. It is typically rendered as italics. For example:
  3408.  
  3409.  
  3410.  
  3411.       He just couldn't get enough of <cite>The Grapes of Wrath</cite>.
  3412.  
  3413.  
  3414.  
  3415. 5.7.1.2. Code: CODE
  3416.  
  3417.  
  3418.  
  3419.       The <CODE> element indicates an example of code, typically
  3420.  
  3421.       rendered in a mono-spaced font. The <CODE> element is intended for
  3422.  
  3423.       short words or phrases of code; the <PRE> block structuring
  3424.  
  3425.       element (5.5.2, "Preformatted Text: PRE") is more appropriate
  3426.  
  3427.        for multiple-line listings. For example:
  3428.  
  3429.  
  3430.  
  3431.       The expression <code>x += 1</code>
  3432.  
  3433.       is short for <code>x = x + 1</code>.
  3434.  
  3435.  
  3436.  
  3437. 5.7.1.3. Emphasis: EM
  3438.  
  3439.  
  3440.  
  3441.       The <EM> element indicates an emphasized phrase, typically
  3442.  
  3443.       rendered as italics. For example:
  3444.  
  3445.  
  3446.  
  3447.       A singular subject <em>always</em> takes a singular verb.
  3448.  
  3449.  
  3450.  
  3451. 5.7.1.4. Keyboard: KBD
  3452.  
  3453.  
  3454.  
  3455.       The <KBD> element indicates text typed by a user, typically
  3456.  
  3457.       rendered in a mono-spaced font. This is commonly used in
  3458.  
  3459.       instruction manuals. For example:
  3460.  
  3461.  
  3462.  
  3463.       Enter <kbd>FIND IT</kbd> to search the database.
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475. Berners-Lee & Connolly      Standards Track                    [Page 31]
  3476.  
  3477.  
  3478.  
  3479. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3480.  
  3481.  
  3482.  
  3483.  
  3484.  
  3485. 5.7.1.5. Sample: SAMP
  3486.  
  3487.  
  3488.  
  3489.       The <SAMP> element indicates a sequence of literal characters,
  3490.  
  3491.       typically rendered in a mono-spaced font. For example:
  3492.  
  3493.  
  3494.  
  3495.       The only word containing the letters <samp>mt</samp> is dreamt.
  3496.  
  3497.  
  3498.  
  3499. 5.7.1.6. Strong Emphasis: STRONG
  3500.  
  3501.  
  3502.  
  3503.       The <STRONG> element indicates strong emphasis, typically rendered
  3504.  
  3505.       in bold. For example:
  3506.  
  3507.  
  3508.  
  3509.       <strong>STOP</strong>, or I'll say "<strong>STOP</strong>" again!
  3510.  
  3511.  
  3512.  
  3513. 5.7.1.7. Variable: VAR
  3514.  
  3515.  
  3516.  
  3517.       The <VAR> element indicates a placeholder variable, typically
  3518.  
  3519.       rendered as italic. For example:
  3520.  
  3521.  
  3522.  
  3523.       Type <SAMP>html-check <VAR>file</VAR> | more</SAMP>
  3524.  
  3525.       to check <VAR>file</VAR> for markup errors.
  3526.  
  3527.  
  3528.  
  3529. 5.7.2. Typographic Elements
  3530.  
  3531.  
  3532.  
  3533.       Typographic elements are used to specify the format of marked
  3534.  
  3535.       text.
  3536.  
  3537.  
  3538.  
  3539.       Typical renderings for idiomatic elements may vary between user
  3540.  
  3541.       agents. If a specific rendering is necessary -- for example, when
  3542.  
  3543.       referring to a specific text attribute as in "The italic parts are
  3544.  
  3545.       mandatory" -- a typographic element can be used to ensure that the
  3546.  
  3547.       intended typography is used where possible.
  3548.  
  3549.  
  3550.  
  3551.       NOTE - User agents may support some typographic elements not
  3552.  
  3553.       included in this specification, as they have been deployed to some
  3554.  
  3555.       extent. The <STRIKE> element indicates horizontal line through the
  3556.  
  3557.       characters, and the <U> element indicates an underline.
  3558.  
  3559.  
  3560.  
  3561. 5.7.2.1. Bold: B
  3562.  
  3563.  
  3564.  
  3565.    The <B> element indicates bold text. Where bold typography is
  3566.  
  3567.    unavailable, an alternative representation may be used.
  3568.  
  3569.  
  3570.  
  3571. 5.7.2.2. Italic: I
  3572.  
  3573.  
  3574.  
  3575.    The <I> element indicates italic text. Where italic typography is
  3576.  
  3577.    unavailable, an alternative representation may be used.
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587. Berners-Lee & Connolly      Standards Track                    [Page 32]
  3588.  
  3589.  
  3590.  
  3591. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597. 5.7.2.3. Teletype: TT
  3598.  
  3599.  
  3600.  
  3601.    The <TT> element indicates teletype (monospaced )text. Where a
  3602.  
  3603.    teletype font is unavailable, an alternative representation may be
  3604.  
  3605.    used.
  3606.  
  3607.  
  3608.  
  3609. 5.7.3. Anchor: A
  3610.  
  3611.  
  3612.  
  3613.    The <A> element indicates a hyperlink anchor (see 7, "Hyperlinks").
  3614.  
  3615.    At least one of the NAME and HREF attributes should be present.
  3616.  
  3617.    Attributes of the <A> element:
  3618.  
  3619.  
  3620.  
  3621.     HREF
  3622.  
  3623.             gives the URI of the head anchor of a hyperlink.
  3624.  
  3625.  
  3626.  
  3627.     NAME
  3628.  
  3629.             gives the name of the anchor, and makes it available as
  3630.  
  3631.             a head of a hyperlink.
  3632.  
  3633.  
  3634.  
  3635.     TITLE
  3636.  
  3637.             suggests a title for the destination resource --
  3638.  
  3639.             advisory only. The TITLE attribute may be used:
  3640.  
  3641.  
  3642.  
  3643.                 * for display prior to accessing the destination
  3644.  
  3645.                 resource, for example, as a margin note or on a
  3646.  
  3647.                 small box while the mouse is over the anchor, or
  3648.  
  3649.                 while the document is being loaded;
  3650.  
  3651.  
  3652.  
  3653.                 * for resources that do not include a title, such as
  3654.  
  3655.                 graphics, plain text and Gopher menus, for use as a
  3656.  
  3657.                 window title.
  3658.  
  3659.  
  3660.  
  3661.     REL
  3662.  
  3663.             The REL attribute gives the relationship(s) described by
  3664.  
  3665.             the hyperlink. The value is a whitespace separated list
  3666.  
  3667.             of relationship names. The semantics of link
  3668.  
  3669.             relationships are not specified in this document.
  3670.  
  3671.  
  3672.  
  3673.     REV
  3674.  
  3675.             same as the REL attribute, but the semantics of the
  3676.  
  3677.             relationship are in the reverse direction. A link from A
  3678.  
  3679.             to B with REL="X" expresses the same relationship as a
  3680.  
  3681.             link from B to A with REV="X". An anchor may have both
  3682.  
  3683.             REL and REV attributes.
  3684.  
  3685.  
  3686.  
  3687.     URN
  3688.  
  3689.             specifies a preferred, more persistent identifier for
  3690.  
  3691.             the head anchor of the hyperlink. The syntax and
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699. Berners-Lee & Connolly      Standards Track                    [Page 33]
  3700.  
  3701.  
  3702.  
  3703. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3704.  
  3705.  
  3706.  
  3707.  
  3708.  
  3709.             semantics of the URN attribute are not yet specified.
  3710.  
  3711.  
  3712.  
  3713.     METHODS
  3714.  
  3715.             specifies methods to be used in accessing the
  3716.  
  3717.             destination, as a whitespace-separated list of names.
  3718.  
  3719.             The set of applicable names is a function of the scheme
  3720.  
  3721.             of the URI in the HREF attribute. For similar reasons as
  3722.  
  3723.             for the TITLE attribute, it may be useful to include the
  3724.  
  3725.             information in advance in the link. For example, the
  3726.  
  3727.             HTML user agent may chose a different rendering as a
  3728.  
  3729.             function of the methods allowed; for example, something
  3730.  
  3731.             that is searchable may get a different icon.
  3732.  
  3733.  
  3734.  
  3735. 5.8. Line Break: BR
  3736.  
  3737.  
  3738.  
  3739.    The <BR> element specifies a line break between words (see 6,
  3740.  
  3741.    "Characters, Words, and Paragraphs"). For example:
  3742.  
  3743.  
  3744.  
  3745.     <P> Pease porridge hot<BR>
  3746.  
  3747.     Pease porridge cold<BR>
  3748.  
  3749.     Pease porridge in the pot<BR>
  3750.  
  3751.     Nine days old.
  3752.  
  3753.  
  3754.  
  3755. 5.9. Horizontal Rule: HR
  3756.  
  3757.  
  3758.  
  3759.    The <HR> element is a divider between sections of text; typically a
  3760.  
  3761.    full width horizontal rule or equivalent graphic.  For example:
  3762.  
  3763.  
  3764.  
  3765.     <HR>
  3766.  
  3767.     <ADDRESS>February 8, 1995, CERN</ADDRESS>
  3768.  
  3769.     </BODY>
  3770.  
  3771.  
  3772.  
  3773. 5.10. Image: IMG
  3774.  
  3775.  
  3776.  
  3777.    The <IMG> element refers to an image or icon via a hyperlink (see
  3778.  
  3779.    7.3, "Simultaneous Presentation of Image Resources").
  3780.  
  3781.  
  3782.  
  3783.    HTML user agents may process the value of the ALT attribute as an
  3784.  
  3785.    alternative to processing the image resource indicated by the SRC
  3786.  
  3787.    attribute.
  3788.  
  3789.  
  3790.  
  3791.       NOTE - Some HTML user agents can process graphics linked via
  3792.  
  3793.       anchors, but not <IMG> graphics. If a graphic is essential, it
  3794.  
  3795.       should be referenced from an <A> element rather than an <IMG>
  3796.  
  3797.       element. If the graphic is not essential, then the <IMG> element
  3798.  
  3799.       is appropriate.
  3800.  
  3801.  
  3802.  
  3803.    Attributes of the <IMG> element:
  3804.  
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810.  
  3811. Berners-Lee & Connolly      Standards Track                    [Page 34]
  3812.  
  3813.  
  3814.  
  3815. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3816.  
  3817.  
  3818.  
  3819.  
  3820.  
  3821.     ALIGN
  3822.  
  3823.             alignment of the image with respect to the text
  3824.  
  3825.             baseline.
  3826.  
  3827.  
  3828.  
  3829.                 * `TOP' specifies that the top of the image aligns
  3830.  
  3831.                 with the tallest item on the line containing the
  3832.  
  3833.                 image.
  3834.  
  3835.  
  3836.  
  3837.                 * `MIDDLE' specifies that the center of the image
  3838.  
  3839.                 aligns with the baseline of the line containing the
  3840.  
  3841.                 image.
  3842.  
  3843.  
  3844.  
  3845.                 * `BOTTOM' specifies that the bottom of the image
  3846.  
  3847.                 aligns with the baseline of the line containing the
  3848.  
  3849.                 image.
  3850.  
  3851.  
  3852.  
  3853.     ALT
  3854.  
  3855.             text to use in place of the referenced image resource,
  3856.  
  3857.             for example due to processing constraints or user
  3858.  
  3859.             preference.
  3860.  
  3861.  
  3862.  
  3863.     ISMAP
  3864.  
  3865.             indicates an image map (see 7.6, "Image Maps").
  3866.  
  3867.  
  3868.  
  3869.     SRC
  3870.  
  3871.             specifies the URI of the image resource.
  3872.  
  3873.  
  3874.  
  3875.                 NOTE - In practice, the media types of image
  3876.  
  3877.                 resources are limited to a few raster graphic
  3878.  
  3879.                 formats: typically `image/gif', `image/jpeg'. In
  3880.  
  3881.                 particular, `text/html' resources are not
  3882.  
  3883.                 intended to be used as image resources.
  3884.  
  3885.  
  3886.  
  3887.     Examples of use:
  3888.  
  3889.  
  3890.  
  3891.     <IMG SRC="triangle.xbm" ALT="Warning:"> Be sure
  3892.  
  3893.     to read these instructions.
  3894.  
  3895.  
  3896.  
  3897.     <a href="http://machine/htbin/imagemap/sample">
  3898.  
  3899.     <IMG SRC="sample.xbm" ISMAP>
  3900.  
  3901.     </a>
  3902.  
  3903.  
  3904.  
  3905. 6. Characters, Words, and Paragraphs
  3906.  
  3907.  
  3908.  
  3909.    An HTML user agent should present the body of an HTML document as a
  3910.  
  3911.    collection of typeset paragraphs and preformatted text.  Except for
  3912.  
  3913.    preformatted elements (<PRE>, <XMP>, <LISTING>, <TEXTAREA>), each
  3914.  
  3915.    block structuring element is regarded as a paragraph by taking the
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923. Berners-Lee & Connolly      Standards Track                    [Page 35]
  3924.  
  3925.  
  3926.  
  3927. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  3928.  
  3929.  
  3930.  
  3931.  
  3932.  
  3933.    data characters in its content and the content of its descendant
  3934.  
  3935.    elements, concatenating them, and splitting the result into words,
  3936.  
  3937.    separated by space, tab, or record end characters (and perhaps hyphen
  3938.  
  3939.    characters). The sequence of words is typeset as a paragraph by
  3940.  
  3941.    breaking it into lines.
  3942.  
  3943.  
  3944.  
  3945. 6.1. The HTML Document Character Set
  3946.  
  3947.  
  3948.  
  3949.    The document character set specified in 9.5, "SGML Declaration for
  3950.  
  3951.    HTML" must be supported by HTML user agents. It includes the graphic
  3952.  
  3953.    characters of Latin Alphabet No. 1, or simply Latin-1.  Latin-1
  3954.  
  3955.    comprises 191 graphic characters, including the alphabets of most
  3956.  
  3957.    Western European languages.
  3958.  
  3959.  
  3960.  
  3961.       NOTE - Use of the non-breaking space and soft hyphen indicator
  3962.  
  3963.       characters is discouraged because support for them is not widely
  3964.  
  3965.       deployed.
  3966.  
  3967.  
  3968.  
  3969.       NOTE - To support non-western writing systems, a larger character
  3970.  
  3971.       repertoire will be specified in a future version of HTML. The
  3972.  
  3973.       document character set will be [ISO-10646], or some subset that
  3974.  
  3975.       agrees with [ISO-10646]; in particular, all numeric character
  3976.  
  3977.       references must use code positions assigned by [ISO-10646].
  3978.  
  3979.  
  3980.  
  3981.    In SGML applications, the use of control characters is limited in
  3982.  
  3983.    order to maximize the chance of successful interchange over
  3984.  
  3985.    heterogeneous networks and operating systems. In the HTML document
  3986.  
  3987.    character set only three control characters are allowed: Horizontal
  3988.  
  3989.    Tab, Carriage Return, and Line Feed (code positions 9, 13, and 10).
  3990.  
  3991.  
  3992.  
  3993.    The HTML DTD references the Added Latin 1 entity set, to allow
  3994.  
  3995.    mnemonic representation of selected Latin 1 characters using only the
  3996.  
  3997.    widely supported ASCII character repertoire. For example:
  3998.  
  3999.  
  4000.  
  4001.    Kurt Gödel was a famous logician and mathematician.
  4002.  
  4003.  
  4004.  
  4005.    See 9.7.2, "ISO Latin 1 Character Entity Set" for a table of the
  4006.  
  4007.    "Added Latin 1" entities, and 13, "The HTML Coded Character Set" for
  4008.  
  4009.    a table of the code positions of [ISO 8859-1] and the control
  4010.  
  4011.    characters in the HTML document character set.
  4012.  
  4013.  
  4014.  
  4015. 7. Hyperlinks
  4016.  
  4017.  
  4018.  
  4019.    In addition to general purpose elements such as paragraphs and lists,
  4020.  
  4021.    HTML documents can express hyperlinks. An HTML user agent allows the
  4022.  
  4023.    user to navigate these hyperlinks.
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034.  
  4035. Berners-Lee & Connolly      Standards Track                    [Page 36]
  4036.  
  4037.  
  4038.  
  4039. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4040.  
  4041.  
  4042.  
  4043.  
  4044.  
  4045.    A hyperlink is a relationship between two anchors, called the head
  4046.  
  4047.    and the tail of the hyperlink[DEXTER]. Anchors are identified by an
  4048.  
  4049.    anchor address: an absolute Uniform Resource Identifier (URI),
  4050.  
  4051.    optionally followed by a '#' and a sequence of characters called a
  4052.  
  4053.    fragment identifier. For example:
  4054.  
  4055.  
  4056.  
  4057.    http://www.w3.org/hypertext/WWW/TheProject.html
  4058.  
  4059.    http://www.w3.org/hypertext/WWW/TheProject.html#z31
  4060.  
  4061.  
  4062.  
  4063.    In an anchor address, the URI refers to a resource; it may be used in
  4064.  
  4065.    a variety of information retrieval protocols to obtain an entity that
  4066.  
  4067.    represents the resource, such as an HTML document. The fragment
  4068.  
  4069.    identifier, if present, refers to some view on, or portion of the
  4070.  
  4071.    resource.
  4072.  
  4073.  
  4074.  
  4075.    Each of the following markup constructs indicates the tail anchor of
  4076.  
  4077.    a hyperlink or set of hyperlinks:
  4078.  
  4079.  
  4080.  
  4081.         * <A> elements with HREF present.
  4082.  
  4083.  
  4084.  
  4085.         * <LINK> elements.
  4086.  
  4087.  
  4088.  
  4089.         * <IMG> elements.
  4090.  
  4091.  
  4092.  
  4093.         * <INPUT> elements with the SRC attribute present.
  4094.  
  4095.  
  4096.  
  4097.         * <ISINDEX> elements.
  4098.  
  4099.  
  4100.  
  4101.         * <FORM> elements with `METHOD=GET'.
  4102.  
  4103.  
  4104.  
  4105.    These markup constructs refer to head anchors by a URI, either
  4106.  
  4107.    absolute or relative, or a fragment identifier, or both.
  4108.  
  4109.  
  4110.  
  4111.    In the case of a relative URI, the absolute URI in the address of the
  4112.  
  4113.    head anchor is the result of combining the relative URI with a base
  4114.  
  4115.    absolute URI as in [RELURL]. The base document is taken from the
  4116.  
  4117.    document's <BASE> element, if present; else, it is determined as in
  4118.  
  4119.    [RELURL].
  4120.  
  4121.  
  4122.  
  4123. 7.1. Accessing Resources
  4124.  
  4125.  
  4126.  
  4127.    Once the address of the head anchor is determined, the user agent may
  4128.  
  4129.    obtain a representation of the resource.
  4130.  
  4131.  
  4132.  
  4133.    For example, if the base URI is `http://host/x/y.html' and the
  4134.  
  4135.    document contains:
  4136.  
  4137.  
  4138.  
  4139.    <img src="../icons/abc.gif">
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147. Berners-Lee & Connolly      Standards Track                    [Page 37]
  4148.  
  4149.  
  4150.  
  4151. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4152.  
  4153.  
  4154.  
  4155.  
  4156.  
  4157.    then the user agent uses the URI `http://host/icons/abc.gif' to
  4158.  
  4159.    access the resource, as in [URL]..
  4160.  
  4161.  
  4162.  
  4163. 7.2. Activation of Hyperlinks
  4164.  
  4165.  
  4166.  
  4167.    An HTML user agent allows the user to navigate the content of the
  4168.  
  4169.    document and request activation of hyperlinks denoted by <A>
  4170.  
  4171.    elements. HTML user agents should also allow activation of <LINK>
  4172.  
  4173.    element hyperlinks.
  4174.  
  4175.  
  4176.  
  4177.    To activate a link, the user agent obtains a representation of the
  4178.  
  4179.    resource identified in the address of the head anchor. If the
  4180.  
  4181.    representation is another HTML document, navigation may begin again
  4182.  
  4183.    with this new document.
  4184.  
  4185.  
  4186.  
  4187. 7.3. Simultaneous Presentation of Image Resources
  4188.  
  4189.  
  4190.  
  4191.    An HTML user agent may activate hyperlinks indicated by <IMG> and
  4192.  
  4193.    <INPUT> elements concurrently with processing the document; that is,
  4194.  
  4195.    image hyperlinks may be processed without explicit request by the
  4196.  
  4197.    user. Image resources should be embedded in the presentation at the
  4198.  
  4199.    point of the tail anchor, that is the <IMG> or <INPUT> element.
  4200.  
  4201.  
  4202.  
  4203.    <LINK> hyperlinks may also be processed without explicit user
  4204.  
  4205.    request; for example, style sheet resources may be processed before
  4206.  
  4207.    or during the processing of the document.
  4208.  
  4209.  
  4210.  
  4211. 7.4. Fragment Identifiers
  4212.  
  4213.  
  4214.  
  4215.    Any characters following a `#' character in a hypertext address
  4216.  
  4217.    constitute a fragment identifier. In particular, an address of the
  4218.  
  4219.    form `#fragment' refers to an anchor in the same document.
  4220.  
  4221.  
  4222.  
  4223.    The meaning of fragment identifiers depends on the media type of the
  4224.  
  4225.    representation of the anchor's resource. For `text/html'
  4226.  
  4227.    representations, it refers to the <A> element with a NAME attribute
  4228.  
  4229.    whose value is the same as the fragment identifier.  The matching is
  4230.  
  4231.    case sensitive. The document should have exactly one such element.
  4232.  
  4233.    The user agent should indicate the anchor element, for example by
  4234.  
  4235.    scrolling to and/or highlighting the phrase.
  4236.  
  4237.  
  4238.  
  4239.    For example, if the base URI is `http://host/x/y.html' and the user
  4240.  
  4241.    activated the link denoted by the following markup:
  4242.  
  4243.  
  4244.  
  4245.    <p> See: <a href="app1.html#bananas">appendix 1</a>
  4246.  
  4247.    for more detail on bananas.
  4248.  
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259. Berners-Lee & Connolly      Standards Track                    [Page 38]
  4260.  
  4261.  
  4262.  
  4263. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4264.  
  4265.  
  4266.  
  4267.  
  4268.  
  4269.    Then the user agent accesses the resource identified by
  4270.  
  4271.    `http://host/x/app1.html'. Assuming the resource is represented using
  4272.  
  4273.    the `text/html' media type, the user agent must locate the <A>
  4274.  
  4275.    element whose NAME attribute is `bananas' and begin navigation there.
  4276.  
  4277.  
  4278.  
  4279. 7.5. Queries and Indexes
  4280.  
  4281.  
  4282.  
  4283.    The <ISINDEX> element represents a set of hyperlinks. The user can
  4284.  
  4285.    choose from the set by providing keywords to the user agent.  The
  4286.  
  4287.    user agent computes the head URI by appending `?' and the keywords to
  4288.  
  4289.    the base URI. The keywords are escaped according to [URL] and joined
  4290.  
  4291.    by `+'. For example, if a document contains:
  4292.  
  4293.  
  4294.  
  4295.     <BASE HREF="http://host/index">
  4296.  
  4297.     <ISINDEX>
  4298.  
  4299.  
  4300.  
  4301.     and the user provides the keywords `apple' and `berry', then the
  4302.  
  4303.     user agent must access the resource
  4304.  
  4305.     `http://host/index?apple+berry'.
  4306.  
  4307.  
  4308.  
  4309.     <FORM> elements with `METHOD=GET' also represent sets of
  4310.  
  4311.     hyperlinks. See 8.2.2, "Query Forms: METHOD=GET" for details.
  4312.  
  4313.  
  4314.  
  4315. 7.6. Image Maps
  4316.  
  4317.  
  4318.  
  4319.    If the ISMAP attribute is present on an <IMG> element, the <IMG>
  4320.  
  4321.    element must be contained in an <A> element with an HREF present.
  4322.  
  4323.    This construct represents a set of hyperlinks. The user can choose
  4324.  
  4325.    from the set by choosing a pixel of the image. The user agent
  4326.  
  4327.    computes the head URI by appending `?' and the x and y coordinates of
  4328.  
  4329.    the pixel to the URI given in the <A> element.  For example, if a
  4330.  
  4331.    document contains:
  4332.  
  4333.  
  4334.  
  4335.    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  4336.  
  4337.    <head><title>ImageMap Example</title>
  4338.  
  4339.    <BASE HREF="http://host/index"></head>
  4340.  
  4341.    <body>
  4342.  
  4343.    <p> Choose any of these icons:<br>
  4344.  
  4345.    <a href="/cgi-bin/imagemap"><img ismap src="icons.gif"></a>
  4346.  
  4347.  
  4348.  
  4349.    and the user chooses the upper-leftmost pixel, the chosen
  4350.  
  4351.    hyperlink is the one with the URI
  4352.  
  4353.    `http://host/cgi-bin/imagemap?0,0'.
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370.  
  4371. Berners-Lee & Connolly      Standards Track                    [Page 39]
  4372.  
  4373.  
  4374.  
  4375. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4376.  
  4377.  
  4378.  
  4379.  
  4380.  
  4381. 8. Forms
  4382.  
  4383.  
  4384.  
  4385.    A form is a template for a form data set and an associated
  4386.  
  4387.    method and action URI. A form data set is a sequence of
  4388.  
  4389.    name/value pair fields. The names are specified on the NAME
  4390.  
  4391.    attributes of form input elements, and the values are given
  4392.  
  4393.    initial values by various forms of markup and edited by the
  4394.  
  4395.    user. The resulting form data set is used to access an
  4396.  
  4397.    information service as a function of the action and method.
  4398.  
  4399.  
  4400.  
  4401.    Forms elements can be mixed in with document structuring
  4402.  
  4403.    elements. For example, a <PRE> element may contain a <FORM>
  4404.  
  4405.    element, or a <FORM> element may contain lists which contain
  4406.  
  4407.    <INPUT> elements. This gives considerable flexibility in
  4408.  
  4409.    designing the layout of forms.
  4410.  
  4411.  
  4412.  
  4413.    Form processing is a level 2 feature.
  4414.  
  4415.  
  4416.  
  4417. 8.1. Form Elements
  4418.  
  4419.  
  4420.  
  4421. 8.1.1. Form: FORM
  4422.  
  4423.  
  4424.  
  4425.    The <FORM> element contains a sequence of input elements, along
  4426.  
  4427.    with document structuring elements. The attributes are:
  4428.  
  4429.  
  4430.  
  4431.     ACTION
  4432.  
  4433.             specifies the action URI for the form. The action URI of
  4434.  
  4435.             a form defaults to the base URI of the document (see 7,
  4436.  
  4437.             "Hyperlinks").
  4438.  
  4439.  
  4440.  
  4441.     METHOD
  4442.  
  4443.             selects a method of accessing the action URI. The set of
  4444.  
  4445.             applicable methods is a function of the scheme of the
  4446.  
  4447.             action URI of the form. See 8.2.2, "Query Forms:
  4448.  
  4449.             METHOD=GET" and 8.2.3, "Forms with Side-Effects:
  4450.  
  4451.             METHOD=POST".
  4452.  
  4453.  
  4454.  
  4455.     ENCTYPE
  4456.  
  4457.             specifies the media type used to encode the name/value
  4458.  
  4459.             pairs for transport, in case the protocol does not
  4460.  
  4461.             itself impose a format. See 8.2.1, "The form-urlencoded
  4462.  
  4463.             Media Type".
  4464.  
  4465.  
  4466.  
  4467. 8.1.2. Input Field: INPUT
  4468.  
  4469.  
  4470.  
  4471.    The <INPUT> element represents a field for user input. The TYPE
  4472.  
  4473.    attribute discriminates between several variations of fields.
  4474.  
  4475.  
  4476.  
  4477.  
  4478.  
  4479.  
  4480.  
  4481.  
  4482.  
  4483. Berners-Lee & Connolly      Standards Track                    [Page 40]
  4484.  
  4485.  
  4486.  
  4487. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4488.  
  4489.  
  4490.  
  4491.  
  4492.  
  4493.    The <INPUT> element has a number of attributes. The set of applicable
  4494.  
  4495.    attributes depends on the value of the TYPE attribute.
  4496.  
  4497.  
  4498.  
  4499. 8.1.2.1. Text Field: INPUT TYPE=TEXT
  4500.  
  4501.  
  4502.  
  4503.    The default value of the TYPE attribute is `TEXT', indicating a
  4504.  
  4505.    single line text entry field. (Use the <TEXTAREA> element for multi-
  4506.  
  4507.    line text fields.)
  4508.  
  4509.  
  4510.  
  4511.    Required attributes are:
  4512.  
  4513.  
  4514.  
  4515.     NAME
  4516.  
  4517.             name for the form field corresponding to this element.
  4518.  
  4519.  
  4520.  
  4521.     The optional attributes are:
  4522.  
  4523.  
  4524.  
  4525.     MAXLENGTH
  4526.  
  4527.             constrains the number of characters that can be entered
  4528.  
  4529.             into a text input field. If the value of MAXLENGTH is
  4530.  
  4531.             greater the the value of the SIZE attribute, the field
  4532.  
  4533.             should scroll appropriately. The default number of
  4534.  
  4535.             characters is unlimited.
  4536.  
  4537.  
  4538.  
  4539.     SIZE
  4540.  
  4541.             specifies the amount of display space allocated to this
  4542.  
  4543.             input field according to its type. The default depends
  4544.  
  4545.             on the user agent.
  4546.  
  4547.  
  4548.  
  4549.     VALUE
  4550.  
  4551.             The initial value of the field.
  4552.  
  4553.  
  4554.  
  4555.     For example:
  4556.  
  4557.  
  4558.  
  4559. <p>Street Address: <input name=street><br>
  4560.  
  4561. Postal City code: <input name=city size=16 maxlength=16><br>
  4562.  
  4563. Zip Code: <input name=zip size=10 maxlength=10 value="99999-9999"><br>
  4564.  
  4565.  
  4566.  
  4567. 8.1.2.2. Password Field: INPUT TYPE=PASSWORD
  4568.  
  4569.  
  4570.  
  4571.    An <INPUT> element with `TYPE=PASSWORD' is a text field as above,
  4572.  
  4573.    except that the value is obscured as it is entered. (see also: 10,
  4574.  
  4575.    "Security Considerations").
  4576.  
  4577.  
  4578.  
  4579.    For example:
  4580.  
  4581.  
  4582.  
  4583. <p>Name: <input name=login> Password: <input type=password name=passwd>
  4584.  
  4585.  
  4586.  
  4587.  
  4588.  
  4589.  
  4590.  
  4591.  
  4592.  
  4593.  
  4594.  
  4595. Berners-Lee & Connolly      Standards Track                    [Page 41]
  4596.  
  4597.  
  4598.  
  4599. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4600.  
  4601.  
  4602.  
  4603.  
  4604.  
  4605. 8.1.2.3. Check Box: INPUT TYPE=CHECKBOX
  4606.  
  4607.  
  4608.  
  4609.    An <INPUT> element with `TYPE=CHECKBOX' represents a boolean choice.
  4610.  
  4611.    A set of such elements with the same name represents an n-of-many
  4612.  
  4613.    choice field. Required attributes are:
  4614.  
  4615.  
  4616.  
  4617.     NAME
  4618.  
  4619.             symbolic name for the form field corresponding to this
  4620.  
  4621.             element or group of elements.
  4622.  
  4623.  
  4624.  
  4625.     VALUE
  4626.  
  4627.             The portion of the value of the field contributed by
  4628.  
  4629.             this element.
  4630.  
  4631.  
  4632.  
  4633.     Optional attributes are:
  4634.  
  4635.  
  4636.  
  4637.     CHECKED
  4638.  
  4639.             indicates that the initial state is on.
  4640.  
  4641.  
  4642.  
  4643.     For example:
  4644.  
  4645.  
  4646.  
  4647.   <p>What flavors do you like?
  4648.  
  4649.   <input type=checkbox name=flavor value=vanilla>Vanilla<br>
  4650.  
  4651.   <input type=checkbox name=flavor value=strawberry>Strawberry<br>
  4652.  
  4653.   <input type=checkbox name=flavor value=chocolate checked>Chocolate<br>
  4654.  
  4655.  
  4656.  
  4657. 8.1.2.4. Radio Button: INPUT TYPE=RADIO
  4658.  
  4659.  
  4660.  
  4661.    An <INPUT> element with `TYPE=RADIO' represents a boolean choice. A
  4662.  
  4663.    set of such elements with the same name represents a 1-of-many choice
  4664.  
  4665.    field. The NAME and VALUE attributes are required as for check boxes.
  4666.  
  4667.    Optional attributes are:
  4668.  
  4669.  
  4670.  
  4671.     CHECKED
  4672.  
  4673.             indicates that the initial state is on.
  4674.  
  4675.    At all times, exactly one of the radio buttons in a set is checked.
  4676.  
  4677.    If none of the <INPUT> elements of a set of radio buttons specifies
  4678.  
  4679.    `CHECKED', then the user agent must check the first radio button of
  4680.  
  4681.    the set initially.
  4682.  
  4683.  
  4684.  
  4685.    For example:
  4686.  
  4687.  
  4688.  
  4689.     <p>Which is your favorite?
  4690.  
  4691.     <input type=radio name=flavor value=vanilla>Vanilla<br>
  4692.  
  4693.     <input type=radio name=flavor value=strawberry>Strawberry<br>
  4694.  
  4695.     <input type=radio name=flavor value=chocolate>Chocolate<br>
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.  
  4703.  
  4704.  
  4705.  
  4706.  
  4707. Berners-Lee & Connolly      Standards Track                    [Page 42]
  4708.  
  4709.  
  4710.  
  4711. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4712.  
  4713.  
  4714.  
  4715.  
  4716.  
  4717. 8.1.2.5. Image Pixel: INPUT TYPE=IMAGE
  4718.  
  4719.  
  4720.  
  4721.    An <INPUT> element with `TYPE=IMAGE' specifies an image resource to
  4722.  
  4723.    display, and allows input of two form fields: the x and y coordinate
  4724.  
  4725.    of a pixel chosen from the image. The names of the fields are the
  4726.  
  4727.    name of the field with `.x' and `.y' appended.  `TYPE=IMAGE' implies
  4728.  
  4729.    `TYPE=SUBMIT' processing; that is, when a pixel is chosen, the form
  4730.  
  4731.    as a whole is submitted.
  4732.  
  4733.  
  4734.  
  4735.    The NAME attribute is required as for other input fields. The SRC
  4736.  
  4737.    attribute is required and the ALIGN is optional as for the <IMG>
  4738.  
  4739.    element (see 5.10, "Image: IMG").
  4740.  
  4741.  
  4742.  
  4743.    For example:
  4744.  
  4745.  
  4746.  
  4747.     <p>Choose a point on the map:
  4748.  
  4749.     <input type=image name=point src="map.gif">
  4750.  
  4751.  
  4752.  
  4753. 8.1.2.6. Hidden Field: INPUT TYPE=HIDDEN
  4754.  
  4755.  
  4756.  
  4757.    An <INPUT> element with `TYPE=HIDDEN' represents a hidden field.The
  4758.  
  4759.    user does not interact with this field; instead, the VALUE attribute
  4760.  
  4761.    specifies the value of the field. The NAME and VALUE attributes are
  4762.  
  4763.    required.
  4764.  
  4765.  
  4766.  
  4767.    For example:
  4768.  
  4769.  
  4770.  
  4771.    <input type=hidden name=context value="l2k3j4l2k3j4l2k3j4lk23">
  4772.  
  4773.  
  4774.  
  4775. 8.1.2.7. Submit Button: INPUT TYPE=SUBMIT
  4776.  
  4777.  
  4778.  
  4779.    An <INPUT> element with `TYPE=SUBMIT' represents an input option,
  4780.  
  4781.    typically a button, that instructs the user agent to submit the form.
  4782.  
  4783.    Optional attributes are:
  4784.  
  4785.  
  4786.  
  4787.     NAME
  4788.  
  4789.             indicates that this element contributes a form field
  4790.  
  4791.             whose value is given by the VALUE attribute. If the NAME
  4792.  
  4793.             attribute is not present, this element does not
  4794.  
  4795.             contribute a form field.
  4796.  
  4797.  
  4798.  
  4799.     VALUE
  4800.  
  4801.             indicates a label for the input (button).
  4802.  
  4803.  
  4804.  
  4805.     You may submit this request internally:
  4806.  
  4807.     <input type=submit name=recipient value=internal><br>
  4808.  
  4809.     or to the external world:
  4810.  
  4811.     <input type=submit name=recipient value=world>
  4812.  
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818.  
  4819. Berners-Lee & Connolly      Standards Track                    [Page 43]
  4820.  
  4821.  
  4822.  
  4823. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4824.  
  4825.  
  4826.  
  4827.  
  4828.  
  4829. 8.1.2.8. Reset Button: INPUT TYPE=RESET
  4830.  
  4831.  
  4832.  
  4833.    An <INPUT> element with `TYPE=RESET' represents an input option,
  4834.  
  4835.    typically a button, that instructs the user agent to reset the form's
  4836.  
  4837.    fields to their initial states. The VALUE attribute, if present,
  4838.  
  4839.    indicates a label for the input (button).
  4840.  
  4841.  
  4842.  
  4843.    When you are finished, you may submit this request:
  4844.  
  4845.    <input type=submit><br>
  4846.  
  4847.    You may clear the form and start over at any time: <input type=reset>
  4848.  
  4849.  
  4850.  
  4851. 8.1.3. Selection: SELECT
  4852.  
  4853.  
  4854.  
  4855.    The <SELECT> element constrains the form field to an enumerated list
  4856.  
  4857.    of values. The values are given in <OPTION> elements.  Attributes
  4858.  
  4859.    are:
  4860.  
  4861.  
  4862.  
  4863.     MULTIPLE
  4864.  
  4865.             indicates that more than one option may be included in
  4866.  
  4867.             the value.
  4868.  
  4869.  
  4870.  
  4871.     NAME
  4872.  
  4873.             specifies the name of the form field.
  4874.  
  4875.  
  4876.  
  4877.     SIZE
  4878.  
  4879.             specifies the number of visible items. Select fields of
  4880.  
  4881.             size one are typically pop-down menus, whereas select
  4882.  
  4883.             fields with size greater than one are typically lists.
  4884.  
  4885.  
  4886.  
  4887.     For example:
  4888.  
  4889.  
  4890.  
  4891.     <SELECT NAME="flavor">
  4892.  
  4893.     <OPTION>Vanilla
  4894.  
  4895.     <OPTION>Strawberry
  4896.  
  4897.     <OPTION value="RumRasin">Rum and Raisin
  4898.  
  4899.     <OPTION selected>Peach and Orange
  4900.  
  4901.     </SELECT>
  4902.  
  4903.  
  4904.  
  4905.    The initial state has the first option selected, unless a SELECTED
  4906.  
  4907.    attribute is present on any of the <OPTION> elements.
  4908.  
  4909.  
  4910.  
  4911. 8.1.3.1. Option: OPTION
  4912.  
  4913.  
  4914.  
  4915.    The Option element can only occur within a Select element. It
  4916.  
  4917.    represents one choice, and has the following attributes:
  4918.  
  4919.  
  4920.  
  4921.     SELECTED
  4922.  
  4923.             Indicates that this option is initially selected.
  4924.  
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930.  
  4931. Berners-Lee & Connolly      Standards Track                    [Page 44]
  4932.  
  4933.  
  4934.  
  4935. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  4936.  
  4937.  
  4938.  
  4939.  
  4940.  
  4941.     VALUE
  4942.  
  4943.             indicates the value to be returned if this option is
  4944.  
  4945.             chosen. The field value defaults to the content of the
  4946.  
  4947.             <OPTION> element.
  4948.  
  4949.  
  4950.  
  4951.    The content of the <OPTION> element is presented to the user to
  4952.  
  4953.    represent the option. It is used as a returned value if the VALUE
  4954.  
  4955.    attribute is not present.
  4956.  
  4957.  
  4958.  
  4959. 8.1.4. Text Area: TEXTAREA
  4960.  
  4961.  
  4962.  
  4963.    The <TEXTAREA> element represents a multi-line text field.
  4964.  
  4965.    Attributes are:
  4966.  
  4967.  
  4968.  
  4969.     COLS
  4970.  
  4971.             the number of visible columns to display for the text
  4972.  
  4973.             area, in characters.
  4974.  
  4975.  
  4976.  
  4977.     NAME
  4978.  
  4979.             Specifies the name of the form field.
  4980.  
  4981.  
  4982.  
  4983.     ROWS
  4984.  
  4985.             The number of visible rows to display for the text area,
  4986.  
  4987.             in characters.
  4988.  
  4989.  
  4990.  
  4991.     For example:
  4992.  
  4993.  
  4994.  
  4995.     <TEXTAREA NAME="address" ROWS=6 COLS=64>
  4996.  
  4997.     HaL Computer Systems
  4998.  
  4999.     1315 Dell Avenue
  5000.  
  5001.     Campbell, California 95008
  5002.  
  5003.     </TEXTAREA>
  5004.  
  5005.  
  5006.  
  5007.    The content of the <TEXTAREA> element is the field's initial value.
  5008.  
  5009.  
  5010.  
  5011.    Typically, the ROWS and COLS attributes determine the visible
  5012.  
  5013.    dimension of the field in characters. The field is typically rendered
  5014.  
  5015.    in a fixed-width font. HTML user agents should allow text to extend
  5016.  
  5017.    beyond these limits by scrolling as needed.
  5018.  
  5019.  
  5020.  
  5021. 8.2. Form Submission
  5022.  
  5023.  
  5024.  
  5025.    An HTML user agent begins processing a form by presenting the
  5026.  
  5027.    document with the fields in their initial state. The user is allowed
  5028.  
  5029.    to modify the fields, constrained by the field type etc.  When the
  5030.  
  5031.    user indicates that the form should be submitted (using a submit
  5032.  
  5033.    button or image input), the form data set is processed according to
  5034.  
  5035.    its method, action URI and enctype.
  5036.  
  5037.  
  5038.  
  5039.  
  5040.  
  5041.  
  5042.  
  5043. Berners-Lee & Connolly      Standards Track                    [Page 45]
  5044.  
  5045.  
  5046.  
  5047. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5048.  
  5049.  
  5050.  
  5051.  
  5052.  
  5053.    When there is only one single-line text input field in a form, the
  5054.  
  5055.    user agent should accept Enter in that field as a request to submit
  5056.  
  5057.    the form.
  5058.  
  5059.  
  5060.  
  5061. 8.2.1. The form-urlencoded Media Type
  5062.  
  5063.  
  5064.  
  5065.    The default encoding for all forms is `application/x-www-form-
  5066.  
  5067.    urlencoded'. A form data set is represented in this media type as
  5068.  
  5069.    follows:
  5070.  
  5071.  
  5072.  
  5073.         1. The form field names and values are escaped: space
  5074.  
  5075.         characters are replaced by `+', and then reserved characters
  5076.  
  5077.         are escaped as per [URL]; that is, non-alphanumeric
  5078.  
  5079.         characters are replaced by `%HH', a percent sign and two
  5080.  
  5081.         hexadecimal digits representing the ASCII code of the
  5082.  
  5083.         character. Line breaks, as in multi-line text field values,
  5084.  
  5085.         are represented as CR LF pairs, i.e. `%0D%0A'.
  5086.  
  5087.  
  5088.  
  5089.         2. The fields are listed in the order they appear in the
  5090.  
  5091.         document with the name separated from the value by `=' and
  5092.  
  5093.         the pairs separated from each other by `&'. Fields with null
  5094.  
  5095.         values may be omitted. In particular, unselected radio
  5096.  
  5097.         buttons and checkboxes should not appear in the encoded
  5098.  
  5099.         data, but hidden fields with VALUE attributes present
  5100.  
  5101.         should.
  5102.  
  5103.  
  5104.  
  5105.             NOTE - The URI from a query form submission can be
  5106.  
  5107.             used in a normal anchor style hyperlink.
  5108.  
  5109.             Unfortunately, the use of the `&' character to
  5110.  
  5111.             separate form fields interacts with its use in SGML
  5112.  
  5113.             attribute values as an entity reference delimiter.
  5114.  
  5115.             For example, the URI `http://host/?x=1&y=2' must be
  5116.  
  5117.             written `<a href="http://host/?x=1&y=2"' or `<a
  5118.  
  5119.             href="http://host/?x=1&y=2">'.
  5120.  
  5121.  
  5122.  
  5123.             HTTP server implementors, and in particular, CGI
  5124.  
  5125.             implementors are encouraged to support the use of
  5126.  
  5127.             `;' in place of `&' to save users the trouble of
  5128.  
  5129.             escaping `&' characters this way.
  5130.  
  5131.  
  5132.  
  5133. 8.2.2. Query Forms: METHOD=GET
  5134.  
  5135.  
  5136.  
  5137.    If the processing of a form is idempotent (i.e. it has no lasting
  5138.  
  5139.    observable effect on the state of the world), then the form method
  5140.  
  5141.    should be `GET'. Many database searches have no visible side-effects
  5142.  
  5143.    and make ideal applications of query forms.
  5144.  
  5145.  
  5146.  
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.  
  5153.  
  5154.  
  5155. Berners-Lee & Connolly      Standards Track                    [Page 46]
  5156.  
  5157.  
  5158.  
  5159. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.    To process a form whose action URL is an HTTP URL and whose method is
  5166.  
  5167.    `GET', the user agent starts with the action URI and appends a `?'
  5168.  
  5169.    and the form data set, in `application/x-www-form-urlencoded' format
  5170.  
  5171.    as above. The user agent then traverses the link to this URI just as
  5172.  
  5173.    if it were an anchor (see 7.2, "Activation of Hyperlinks").
  5174.  
  5175.  
  5176.  
  5177.       NOTE - The URL encoding may result in very long URIs, which cause
  5178.  
  5179.       some historical HTTP server implementations to exhibit defective
  5180.  
  5181.       behavior. As a result, some HTML forms are written using
  5182.  
  5183.       `METHOD=POST' even though the form submission has no side-effects.
  5184.  
  5185.  
  5186.  
  5187. 8.2.3. Forms with Side-Effects: METHOD=POST
  5188.  
  5189.  
  5190.  
  5191.    If the service associated with the processing of a form has side
  5192.  
  5193.    effects (for example, modification of a database or subscription to a
  5194.  
  5195.    service), the method should be `POST'.
  5196.  
  5197.  
  5198.  
  5199.    To process a form whose action URL is an HTTP URL and whose method is
  5200.  
  5201.    `POST', the user agent conducts an HTTP POST transaction using the
  5202.  
  5203.    action URI, and a message body of type `application/x-www-form-
  5204.  
  5205.    urlencoded' format as above. The user agent should display the
  5206.  
  5207.    response from the HTTP POST interaction just as it would display the
  5208.  
  5209.    response from an HTTP GET above.
  5210.  
  5211.  
  5212.  
  5213. 8.2.4. Example Form Submission: Questionnaire Form
  5214.  
  5215.  
  5216.  
  5217.    Consider the following document:
  5218.  
  5219.  
  5220.  
  5221.     <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  5222.  
  5223.     <title>Sample of HTML Form Submission</title>
  5224.  
  5225.     <H1>Sample Questionnaire</H1>
  5226.  
  5227.     <P>Please fill out this questionnaire:
  5228.  
  5229.     <FORM METHOD="POST" ACTION="http://www.w3.org/sample">
  5230.  
  5231.     <P>Your name: <INPUT NAME="name" size="48">
  5232.  
  5233.     <P>Male <INPUT NAME="gender" TYPE=RADIO VALUE="male">
  5234.  
  5235.     <P>Female <INPUT NAME="gender" TYPE=RADIO VALUE="female">
  5236.  
  5237.     <P>Number in family: <INPUT NAME="family" TYPE=text>
  5238.  
  5239.     <P>Cities in which you maintain a residence:
  5240.  
  5241.     <UL>
  5242.  
  5243.     <LI>Kent <INPUT NAME="city" TYPE=checkbox VALUE="kent">
  5244.  
  5245.     <LI>Miami <INPUT NAME="city" TYPE=checkbox VALUE="miami">
  5246.  
  5247.     <LI>Other <TEXTAREA NAME="other" cols=48 rows=4></textarea>
  5248.  
  5249.     </UL>
  5250.  
  5251.     Nickname: <INPUT NAME="nickname" SIZE="42">
  5252.  
  5253.     <P>Thank you for responding to this questionnaire.
  5254.  
  5255.     <P><INPUT TYPE=SUBMIT> <INPUT TYPE=RESET>
  5256.  
  5257.     </FORM>
  5258.  
  5259.  
  5260.  
  5261.  
  5262.  
  5263.  
  5264.  
  5265.  
  5266.  
  5267. Berners-Lee & Connolly      Standards Track                    [Page 47]
  5268.  
  5269.  
  5270.  
  5271. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.     The initial state of the form data set is:
  5278.  
  5279.  
  5280.  
  5281.     name
  5282.  
  5283.             ""
  5284.  
  5285.  
  5286.  
  5287.     gender
  5288.  
  5289.             "male"
  5290.  
  5291.  
  5292.  
  5293.     family
  5294.  
  5295.             ""
  5296.  
  5297.  
  5298.  
  5299.     other
  5300.  
  5301.             ""
  5302.  
  5303.  
  5304.  
  5305.     nickname
  5306.  
  5307.             ""
  5308.  
  5309.  
  5310.  
  5311.     Note that the radio input has an initial value, while the
  5312.  
  5313.     checkbox has none.
  5314.  
  5315.  
  5316.  
  5317.     The user might edit the fields and request that the form be
  5318.  
  5319.     submitted. At that point, suppose the values are:
  5320.  
  5321.  
  5322.  
  5323.     name
  5324.  
  5325.             "John Doe"
  5326.  
  5327.  
  5328.  
  5329.     gender
  5330.  
  5331.             "male"
  5332.  
  5333.  
  5334.  
  5335.     family
  5336.  
  5337.             "5"
  5338.  
  5339.  
  5340.  
  5341.     city
  5342.  
  5343.             "kent"
  5344.  
  5345.  
  5346.  
  5347.     city
  5348.  
  5349.             "miami"
  5350.  
  5351.  
  5352.  
  5353.     other
  5354.  
  5355.             "abc\ndefk"
  5356.  
  5357.  
  5358.  
  5359.     nickname
  5360.  
  5361.             "J&D"
  5362.  
  5363.  
  5364.  
  5365.    The user agent then conducts an HTTP POST transaction using the URI
  5366.  
  5367.    `http://www.w3.org/sample'. The message body would be (ignore the
  5368.  
  5369.    line break):
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375.  
  5376.  
  5377.  
  5378.  
  5379. Berners-Lee & Connolly      Standards Track                    [Page 48]
  5380.  
  5381.  
  5382.  
  5383. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5384.  
  5385.  
  5386.  
  5387.  
  5388.  
  5389.    name=John+Doe&gender=male&family=5&city=kent&city=miami&
  5390.  
  5391.    other=abc%0D%0Adef&nickname=J%26D
  5392.  
  5393.  
  5394.  
  5395. 9. HTML Public Text
  5396.  
  5397.  
  5398.  
  5399. 9.1. HTML DTD
  5400.  
  5401.  
  5402.  
  5403.    This is the Document Type Definition for the HyperText Markup
  5404.  
  5405.    Language, level 2.
  5406.  
  5407.  
  5408.  
  5409. <!--    html.dtd
  5410.  
  5411.  
  5412.  
  5413.         Document Type Definition for the HyperText Markup Language
  5414.  
  5415.                  (HTML DTD)
  5416.  
  5417.  
  5418.  
  5419.         $Id: html.dtd,v 1.30 1995/09/21 23:30:19 connolly Exp $
  5420.  
  5421.  
  5422.  
  5423.         Author: Daniel W. Connolly <connolly@w3.org>
  5424.  
  5425.         See Also: html.decl, html-1.dtd
  5426.  
  5427.           http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html
  5428.  
  5429. -->
  5430.  
  5431.  
  5432.  
  5433. <!ENTITY % HTML.Version
  5434.  
  5435.         "-//IETF//DTD HTML 2.0//EN"
  5436.  
  5437.  
  5438.  
  5439.         -- Typical usage:
  5440.  
  5441.  
  5442.  
  5443.             <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  5444.  
  5445.             <html>
  5446.  
  5447.             ...
  5448.  
  5449.             </html>
  5450.  
  5451.         --
  5452.  
  5453.         >
  5454.  
  5455.  
  5456.  
  5457.  
  5458.  
  5459. <!--============ Feature Test Entities ========================-->
  5460.  
  5461.  
  5462.  
  5463. <!ENTITY % HTML.Recommended "IGNORE"
  5464.  
  5465.         -- Certain features of the language are necessary for
  5466.  
  5467.            compatibility with widespread usage, but they may
  5468.  
  5469.            compromise the structural integrity of a document.
  5470.  
  5471.            This feature test entity enables a more prescriptive
  5472.  
  5473.            document type definition that eliminates
  5474.  
  5475.            those features.
  5476.  
  5477.         -->
  5478.  
  5479.  
  5480.  
  5481. <![ %HTML.Recommended [
  5482.  
  5483.         <!ENTITY % HTML.Deprecated "IGNORE">
  5484.  
  5485.  
  5486.  
  5487.  
  5488.  
  5489.  
  5490.  
  5491. Berners-Lee & Connolly      Standards Track                    [Page 49]
  5492.  
  5493.  
  5494.  
  5495. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5496.  
  5497.  
  5498.  
  5499.  
  5500.  
  5501. ]]>
  5502.  
  5503.  
  5504.  
  5505. <!ENTITY % HTML.Deprecated "INCLUDE"
  5506.  
  5507.         -- Certain features of the language are necessary for
  5508.  
  5509.            compatibility with earlier versions of the specification,
  5510.  
  5511.            but they tend to be used and implemented inconsistently,
  5512.  
  5513.            and their use is deprecated. This feature test entity
  5514.  
  5515.            enables a document type definition that eliminates
  5516.  
  5517.            these features.
  5518.  
  5519.         -->
  5520.  
  5521.  
  5522.  
  5523. <!ENTITY % HTML.Highlighting "INCLUDE"
  5524.  
  5525.         -- Use this feature test entity to validate that a
  5526.  
  5527.            document uses no highlighting tags, which may be
  5528.  
  5529.            ignored on minimal implementations.
  5530.  
  5531.         -->
  5532.  
  5533.  
  5534.  
  5535. <!ENTITY % HTML.Forms "INCLUDE"
  5536.  
  5537.         -- Use this feature test entity to validate that a document
  5538.  
  5539.            contains no forms, which may not be supported in minimal
  5540.  
  5541.            implementations
  5542.  
  5543.         -->
  5544.  
  5545.  
  5546.  
  5547. <!--============== Imported Names ==============================-->
  5548.  
  5549.  
  5550.  
  5551. <!ENTITY % Content-Type "CDATA"
  5552.  
  5553.         -- meaning an internet media type
  5554.  
  5555.            (aka MIME content type, as per RFC1521)
  5556.  
  5557.         -->
  5558.  
  5559.  
  5560.  
  5561. <!ENTITY % HTTP-Method "GET | POST"
  5562.  
  5563.         -- as per HTTP specification, in progress
  5564.  
  5565.         -->
  5566.  
  5567.  
  5568.  
  5569. <!--========= DTD "Macros" =====================-->
  5570.  
  5571.  
  5572.  
  5573. <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
  5574.  
  5575.  
  5576.  
  5577. <!ENTITY % list " UL | OL | DIR | MENU " >
  5578.  
  5579.  
  5580.  
  5581.  
  5582.  
  5583. <!--======= Character mnemonic entities =================-->
  5584.  
  5585.  
  5586.  
  5587. <!ENTITY % ISOlat1 PUBLIC
  5588.  
  5589.   "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
  5590.  
  5591. %ISOlat1;
  5592.  
  5593.  
  5594.  
  5595. <!ENTITY amp CDATA "&"     -- ampersand          -->
  5596.  
  5597.  
  5598.  
  5599.  
  5600.  
  5601.  
  5602.  
  5603. Berners-Lee & Connolly      Standards Track                    [Page 50]
  5604.  
  5605.  
  5606.  
  5607. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613. <!ENTITY gt CDATA ">"      -- greater than       -->
  5614.  
  5615. <!ENTITY lt CDATA "<"      -- less than          -->
  5616.  
  5617. <!ENTITY quot CDATA """    -- double quote       -->
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623. <!--========= SGML Document Access (SDA) Parameter Entities =====-->
  5624.  
  5625.  
  5626.  
  5627. <!-- HTML 2.0 contains SGML Document Access (SDA) fixed attributes
  5628.  
  5629. in support of easy transformation to the International Committee
  5630.  
  5631. for Accessible Document Design (ICADD) DTD
  5632.  
  5633.          "-//EC-USA-CDA/ICADD//DTD ICADD22//EN".
  5634.  
  5635. ICADD applications are designed to support usable access to
  5636.  
  5637. structured information by print-impaired individuals through
  5638.  
  5639. Braille, large print and voice synthesis.  For more information on
  5640.  
  5641. SDA & ICADD:
  5642.  
  5643.         - ISO 12083:1993, Annex A.8, Facilities for Braille,
  5644.  
  5645.           large print and computer voice
  5646.  
  5647.         - ICADD ListServ
  5648.  
  5649.           <ICADD%ASUACAD.BITNET@ARIZVM1.ccit.arizona.edu>
  5650.  
  5651.         - Usenet news group bit.listserv.easi
  5652.  
  5653.         - Recording for the Blind, +1 800 221 4792
  5654.  
  5655. -->
  5656.  
  5657.  
  5658.  
  5659. <!ENTITY % SDAFORM  "SDAFORM  CDATA  #FIXED"
  5660.  
  5661.           -- one to one mapping        -->
  5662.  
  5663. <!ENTITY % SDARULE  "SDARULE  CDATA  #FIXED"
  5664.  
  5665.           -- context-sensitive mapping -->
  5666.  
  5667. <!ENTITY % SDAPREF  "SDAPREF  CDATA  #FIXED"
  5668.  
  5669.           -- generated text prefix     -->
  5670.  
  5671. <!ENTITY % SDASUFF  "SDASUFF  CDATA  #FIXED"
  5672.  
  5673.           -- generated text suffix     -->
  5674.  
  5675. <!ENTITY % SDASUSP  "SDASUSP  NAME   #FIXED"
  5676.  
  5677.           -- suspend transform process -->
  5678.  
  5679.  
  5680.  
  5681.  
  5682.  
  5683. <!--========== Text Markup =====================-->
  5684.  
  5685.  
  5686.  
  5687. <![ %HTML.Highlighting [
  5688.  
  5689.  
  5690.  
  5691. <!ENTITY % font " TT | B | I ">
  5692.  
  5693.  
  5694.  
  5695. <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE ">
  5696.  
  5697.  
  5698.  
  5699. <!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">
  5700.  
  5701.  
  5702.  
  5703. <!ELEMENT (%font;|%phrase) - - (%text)*>
  5704.  
  5705. <!ATTLIST ( TT | CODE | SAMP | KBD | VAR )
  5706.  
  5707.         %SDAFORM; "Lit"
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714.  
  5715. Berners-Lee & Connolly      Standards Track                    [Page 51]
  5716.  
  5717.  
  5718.  
  5719. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.         >
  5726.  
  5727. <!ATTLIST ( B | STRONG )
  5728.  
  5729.         %SDAFORM; "B"
  5730.  
  5731.         >
  5732.  
  5733. <!ATTLIST ( I | EM | CITE )
  5734.  
  5735.         %SDAFORM; "It"
  5736.  
  5737.         >
  5738.  
  5739.  
  5740.  
  5741. <!-- <TT>       Typewriter text                         -->
  5742.  
  5743. <!-- <B>        Bold text                               -->
  5744.  
  5745. <!-- <I>        Italic text                             -->
  5746.  
  5747.  
  5748.  
  5749. <!-- <EM>       Emphasized phrase                       -->
  5750.  
  5751. <!-- <STRONG>   Strong emphasis                         -->
  5752.  
  5753. <!-- <CODE>     Source code phrase                      -->
  5754.  
  5755. <!-- <SAMP>     Sample text or characters               -->
  5756.  
  5757. <!-- <KBD>      Keyboard phrase, e.g. user input        -->
  5758.  
  5759. <!-- <VAR>      Variable phrase or substitutable        -->
  5760.  
  5761. <!-- <CITE>     Name or title of cited work             -->
  5762.  
  5763.  
  5764.  
  5765. <!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase">
  5766.  
  5767.  
  5768.  
  5769. ]]>
  5770.  
  5771.  
  5772.  
  5773. <!ENTITY % text "#PCDATA | A | IMG | BR">
  5774.  
  5775.  
  5776.  
  5777. <!ELEMENT BR    - O EMPTY>
  5778.  
  5779. <!ATTLIST BR
  5780.  
  5781.         %SDAPREF; "&#RE;"
  5782.  
  5783.         >
  5784.  
  5785.  
  5786.  
  5787. <!-- <BR>       Line break      -->
  5788.  
  5789.  
  5790.  
  5791.  
  5792.  
  5793. <!--========= Link Markup ======================-->
  5794.  
  5795.  
  5796.  
  5797. <!ENTITY % linkType "NAMES">
  5798.  
  5799.  
  5800.  
  5801. <!ENTITY % linkExtraAttributes
  5802.  
  5803.         "REL %linkType #IMPLIED
  5804.  
  5805.         REV %linkType #IMPLIED
  5806.  
  5807.         URN CDATA #IMPLIED
  5808.  
  5809.         TITLE CDATA #IMPLIED
  5810.  
  5811.         METHODS NAMES #IMPLIED
  5812.  
  5813.         ">
  5814.  
  5815.  
  5816.  
  5817. <![ %HTML.Recommended [
  5818.  
  5819.         <!ENTITY % A.content   "(%text)*"
  5820.  
  5821.  
  5822.  
  5823.  
  5824.  
  5825.  
  5826.  
  5827. Berners-Lee & Connolly      Standards Track                    [Page 52]
  5828.  
  5829.  
  5830.  
  5831. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5832.  
  5833.  
  5834.  
  5835.  
  5836.  
  5837.         -- <H1><a name="xxx">Heading</a></H1>
  5838.  
  5839.                 is preferred to
  5840.  
  5841.            <a name="xxx"><H1>Heading</H1></a>
  5842.  
  5843.         -->
  5844.  
  5845. ]]>
  5846.  
  5847.  
  5848.  
  5849. <!ENTITY % A.content   "(%heading|%text)*">
  5850.  
  5851.  
  5852.  
  5853. <!ELEMENT A     - - %A.content -(A)>
  5854.  
  5855. <!ATTLIST A
  5856.  
  5857.         HREF CDATA #IMPLIED
  5858.  
  5859.         NAME CDATA #IMPLIED
  5860.  
  5861.         %linkExtraAttributes;
  5862.  
  5863.         %SDAPREF; "<Anchor: #AttList>"
  5864.  
  5865.         >
  5866.  
  5867. <!-- <A>                Anchor; source/destination of link      -->
  5868.  
  5869. <!-- <A NAME="...">     Name of this anchor                     -->
  5870.  
  5871. <!-- <A HREF="...">     Address of link destination             -->
  5872.  
  5873. <!-- <A URN="...">      Permanent address of destination        -->
  5874.  
  5875. <!-- <A REL=...>        Relationship to destination             -->
  5876.  
  5877. <!-- <A REV=...>        Relationship of destination to this     -->
  5878.  
  5879. <!-- <A TITLE="...">    Title of destination (advisory)         -->
  5880.  
  5881. <!-- <A METHODS="...">  Operations on destination (advisory)    -->
  5882.  
  5883.  
  5884.  
  5885.  
  5886.  
  5887. <!--========== Images ==========================-->
  5888.  
  5889.  
  5890.  
  5891. <!ELEMENT IMG    - O EMPTY>
  5892.  
  5893. <!ATTLIST IMG
  5894.  
  5895.         SRC CDATA  #REQUIRED
  5896.  
  5897.         ALT CDATA #IMPLIED
  5898.  
  5899.         ALIGN (top|middle|bottom) #IMPLIED
  5900.  
  5901.         ISMAP (ISMAP) #IMPLIED
  5902.  
  5903.         %SDAPREF; "<Fig><?SDATrans Img: #AttList>#AttVal(Alt)</Fig>"
  5904.  
  5905.         >
  5906.  
  5907.  
  5908.  
  5909. <!-- <IMG>              Image; icon, glyph or illustration      -->
  5910.  
  5911. <!-- <IMG SRC="...">    Address of image object                 -->
  5912.  
  5913. <!-- <IMG ALT="...">    Textual alternative                     -->
  5914.  
  5915. <!-- <IMG ALIGN=...>    Position relative to text               -->
  5916.  
  5917. <!-- <IMG ISMAP>        Each pixel can be a link                -->
  5918.  
  5919.  
  5920.  
  5921. <!--========== Paragraphs=======================-->
  5922.  
  5923.  
  5924.  
  5925. <!ELEMENT P     - O (%text)*>
  5926.  
  5927. <!ATTLIST P
  5928.  
  5929.         %SDAFORM; "Para"
  5930.  
  5931.         >
  5932.  
  5933.  
  5934.  
  5935.  
  5936.  
  5937.  
  5938.  
  5939. Berners-Lee & Connolly      Standards Track                    [Page 53]
  5940.  
  5941.  
  5942.  
  5943. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949. <!-- <P>        Paragraph       -->
  5950.  
  5951.  
  5952.  
  5953.  
  5954.  
  5955. <!--========== Headings, Titles, Sections ===============-->
  5956.  
  5957.  
  5958.  
  5959. <!ELEMENT HR    - O EMPTY>
  5960.  
  5961. <!ATTLIST HR
  5962.  
  5963.         %SDAPREF; "&#RE;&#RE;"
  5964.  
  5965.         >
  5966.  
  5967.  
  5968.  
  5969. <!-- <HR>       Horizontal rule -->
  5970.  
  5971.  
  5972.  
  5973. <!ELEMENT ( %heading )  - -  (%text;)*>
  5974.  
  5975. <!ATTLIST H1
  5976.  
  5977.         %SDAFORM; "H1"
  5978.  
  5979.         >
  5980.  
  5981. <!ATTLIST H2
  5982.  
  5983.         %SDAFORM; "H2"
  5984.  
  5985.         >
  5986.  
  5987. <!ATTLIST H3
  5988.  
  5989.         %SDAFORM; "H3"
  5990.  
  5991.         >
  5992.  
  5993. <!ATTLIST H4
  5994.  
  5995.         %SDAFORM; "H4"
  5996.  
  5997.         >
  5998.  
  5999. <!ATTLIST H5
  6000.  
  6001.         %SDAFORM; "H5"
  6002.  
  6003.         >
  6004.  
  6005. <!ATTLIST H6
  6006.  
  6007.         %SDAFORM; "H6"
  6008.  
  6009.         >
  6010.  
  6011.  
  6012.  
  6013. <!-- <H1>       Heading, level 1 -->
  6014.  
  6015. <!-- <H2>       Heading, level 2 -->
  6016.  
  6017. <!-- <H3>       Heading, level 3 -->
  6018.  
  6019. <!-- <H4>       Heading, level 4 -->
  6020.  
  6021. <!-- <H5>       Heading, level 5 -->
  6022.  
  6023. <!-- <H6>       Heading, level 6 -->
  6024.  
  6025.  
  6026.  
  6027.  
  6028.  
  6029. <!--========== Text Flows ======================-->
  6030.  
  6031.  
  6032.  
  6033. <![ %HTML.Forms [
  6034.  
  6035.         <!ENTITY % block.forms "BLOCKQUOTE | FORM | ISINDEX">
  6036.  
  6037. ]]>
  6038.  
  6039.  
  6040.  
  6041. <!ENTITY % block.forms "BLOCKQUOTE">
  6042.  
  6043.  
  6044.  
  6045.  
  6046.  
  6047.  
  6048.  
  6049.  
  6050.  
  6051. Berners-Lee & Connolly      Standards Track                    [Page 54]
  6052.  
  6053.  
  6054.  
  6055. RFC 1866            Hypertext Markup Language - 2.0        November 1995
  6056.  
  6057.  
  6058.  
  6059.  
  6060.  
  6061. <![ %HTML.Deprecated [
  6062.  
  6063.         <!ENTITY % preformatted "PRE | XMP | LISTING">
  6064.  
  6065. ]]>
  6066.  
  6067.  
  6068.  
  6069. <!ENTITY % preformatted "PRE">
  6070.  
  6071.  
  6072.  
  6073. <!ENTITY % block "P | %list | DL
  6074.  
  6075.         | %preformatted
  6076.  
  6077.         | %block.forms">
  6078.  
  6079.  
  6080.  
  6081. <!ENTITY % flow "(%text|%block)*">
  6082.  
  6083.  
  6084.  
  6085. <!ENTITY % pre.content "#PCDATA | A | HR | BR">
  6086.  
  6087. <!ELEMENT PRE - - (%pre.content)*>
  6088.  
  6089. <!ATTLIST PRE
  6090.  
  6091.         WIDTH NUMBER #implied
  6092.  
  6093.         %SDAFORM; "Lit"
  6094.  
  6095.         >
  6096.  
  6097.  
  6098.  
  6099. <!-- <PRE>              Preformatted text               -->
  6100.  
  6101. <!-- <PRE WIDTH=...>    Maximum characters per line     -->
  6102.  
  6103.  
  6104.  
  6105. <![ %HTML.Deprecated [
  6106.  
  6107.  
  6108.  
  6109. <!ENTITY % literal "CDATA"
  6110.  
  6111.         -- historical, non-conforming parsing mode where
  6112.  
  6113.            the only markup signal is the end tag
  6114.  
  6115.            in full
  6116.  
  6117.         -->
  6118.  
  6119.  
  6120.  
  6121. <!ELEMENT (XMP|LISTING) - -  %literal>
  6122.  
  6123. <!ATTLIST XMP
  6124.  
  6125.         %SDAFORM; "Lit"
  6126.  
  6127.         %SDAPREF; "Example:&#RE;"
  6128.  
  6129.         >
  6130.  
  6131. <!ATTLIST LISTING
  6132.  
  6133.         %SDAFORM; "Lit"
  6134.  
  6135.         %SDAPREF; "Listing:&#RE;"
  6136.  
  6137.         >
  6138.  
  6139.  
  6140.  
  6141. <!-- <XMP>              Example section         -->
  6142.  
  6143. <!-- <LISTING>          Computer listing        -->
  6144.  
  6145.  
  6146.  
  6147. <!ELEMENT PLAINTEXT - O %literal>
  6148.  
  6149. <!-- <PLAINTEXT>        Plain text pasCode: SF, Missing DocID in request
  6150.