home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / knowhow / html / html40 / loose.dtd < prev    next >
Text File  |  1997-11-10  |  45KB  |  1,106 lines

  1. <!--
  2.     This is an EXPERIMENTAL version of the HTML 4.0 "transitional"
  3.     DTD which includes presentation attributes and elements that
  4.     W3C expects to phase out as support for style sheets matures.
  5.     HTML 4.0 includes mechanisms for style sheets, scripting,
  6.     embedding objects, improved support for right to left and mixed
  7.     direction text, and enhancements to forms for improved
  8.     accessibility for people with disabilities.
  9.  
  10.           Draft: $Date: 1997/11/07 15:32:37 $
  11.  
  12.           Authors:
  13.               Dave Raggett <dsr@w3.org>
  14.               Arnaud Le Hors <lehors@w3.org>
  15.  
  16.     This is work in progress, subject to change at any time.
  17.     It does not imply endorsement by, or the consensus of,
  18.     either W3C or members of the HTML working group. Further
  19.     information about HTML 4.0 is available at:
  20.  
  21.         http://www.w3.org/TR/PR-html40
  22. -->
  23. <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0 Transitional//EN"
  24.   -- Typical usage:
  25.  
  26.     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
  27.             "http://www.w3.org/TR/PR-html40/loose.dtd">
  28.     <html>
  29.     <head>
  30.     ...
  31.     </head>
  32.     <body>
  33.     ...
  34.     </body>
  35.     </html>
  36.  
  37.     The URL used as a system identifier with the public identifier allows
  38.     the user agent to download the DTD and entity sets as needed.
  39.  
  40.     The FPI for the strict HTML 4.0 DTD is:
  41.  
  42.         "-//W3C//DTD HTML 4.0//EN"
  43.  
  44.     and its URL is:
  45.  
  46.         http://www.w3.org/TR/PR-html40/strict.dtd
  47.  
  48.     Authors should use the strict DTD unless they need the
  49.     presentation control for user agents that don't (adequately)
  50.     support style sheets.
  51.  
  52.     If you are writing a frameset document you should use the
  53.     following FPI:
  54.  
  55.         "-//W3C//DTD HTML 4.0 Frameset//EN"
  56.  
  57.     with the URL:
  58.  
  59.         http://www.w3.org/TR/PR-html40/frameset.dtd
  60.  
  61.     The following URLs are supported in relation to HTML 4.0
  62.  
  63.     "http://www.w3.org/TR/PR-html40/strict.dtd" (Strict DTD)
  64.     "http://www.w3.org/TR/PR-html40/loose.dtd" (Loose DTD)
  65.     "http://www.w3.org/TR/PR-html40/frameset.dtd" (Frameset DTD)
  66.     "http://www.w3.org/TR/PR-html40/HTMLlat1.ent" (Latin-1 entities)
  67.     "http://www.w3.org/TR/PR-html40/HTMLsymbol.ent" (Symbol entities)
  68.     "http://www.w3.org/TR/PR-html40/HTMLspecial.ent" (Special entities)
  69.  
  70.     These URLs point to the latest version of each file. To reference
  71.     this specific revision use the following URLs:
  72.  
  73.     "http://www.w3.org/TR/PR-html40-971107/strict.dtd"
  74.     "http://www.w3.org/TR/PR-html40-971107/loose.dtd"
  75.     "http://www.w3.org/TR/PR-html40-971107/frameset.dtd"
  76.     "http://www.w3.org/TR/PR-html40-971107/HTMLlat1.ent"
  77.     "http://www.w3.org/TR/PR-html40-971107/HTMLsymbol.ent"
  78.     "http://www.w3.org/TR/PR-html40-971107/HTMLspecial.ent"
  79.  
  80. -->
  81.  
  82. <!--================== Imported Names ====================================-->
  83.  
  84. <!ENTITY % ContentType "CDATA"
  85.     -- media type, as per [RFC2045]
  86.     -->
  87.  
  88. <!ENTITY % ContentTypes "CDATA"
  89.     -- comma-separated list of media types, as per [RFC2045]
  90.     -->
  91.  
  92. <!ENTITY % Charset "CDATA"
  93.     -- a character encoding, as per [RFC2045]
  94.     -->
  95.  
  96. <!ENTITY % Charsets "CDATA"
  97.     -- a space separated list of character encodings, as per [RFC2045]
  98.     -->
  99.  
  100. <!ENTITY % LanguageCode "NAME"
  101.     -- a language code, as per [RFC1766]
  102.     -->
  103.  
  104. <!ENTITY % Character "CDATA"
  105.     -- a single character from [ISO10646] 
  106.     -->
  107.  
  108. <!ENTITY % LinkTypes "CDATA"
  109.     -- space-separated list of link types
  110.     -->
  111.  
  112. <!ENTITY % MediaDesc "CDATA"
  113.     -- single or comma-separated list of media descriptors
  114.     -->
  115.  
  116. <!ENTITY % URL "CDATA"
  117.     -- a Uniform Resource Locator,
  118.        see [RFC1808] and [RFC1738]
  119.     -->
  120.  
  121. <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
  122.  
  123.  
  124. <!ENTITY % Script "CDATA" -- script expression -->
  125.  
  126. <!ENTITY % FrameTarget "CDATA" -- render in this frame -->
  127.  
  128.  
  129. <!ENTITY % Text "CDATA" -- render in this frame -->
  130.  
  131.  
  132. <!-- Parameter Entities -->
  133.  
  134. <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK" -- repeatable head elements -->
  135.  
  136. <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
  137.  
  138. <!ENTITY % list "UL | OL |  DIR | MENU">
  139.  
  140. <!ENTITY % preformatted "PRE">
  141.  
  142. <!ENTITY % Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->
  143.  
  144. <!-- There are also 16 widely known color names with their sRGB values:
  145.  
  146.     Black  = #000000    Green  = #008000
  147.     Silver = #C0C0C0    Lime   = #00FF00
  148.     Gray   = #808080    Olive  = #808000
  149.     White  = #FFFFFF    Yellow = #FFFF00
  150.     Maroon = #800000    Navy   = #000080
  151.     Red    = #FF0000    Blue   = #0000FF
  152.     Purple = #800080    Teal   = #008080
  153.     Fuchsia= #FF00FF    Aqua   = #00FFFF
  154.  -->
  155.  
  156. <!ENTITY % bodycolors "
  157.   bgcolor %Color;   #IMPLIED       -- document background color --
  158.   text    %Color;   #IMPLIED       -- document text color --
  159.   link    %Color;   #IMPLIED       -- color of links --
  160.   vlink   %Color;   #IMPLIED       -- color of visited links --
  161.   alink   %Color;   #IMPLIED       -- color of selected links --
  162.   ">
  163.  
  164. <!--================ Character mnemonic entities =========================-->
  165.  
  166. <!ENTITY % HTMLlat1 PUBLIC
  167.    "-//W3C//ENTITIES Latin1//EN//HTML"
  168.    "http://www.w3.org/TR/PR-html40/HTMLlat1.ent">
  169. %HTMLlat1;
  170.  
  171. <!ENTITY % HTMLsymbol PUBLIC
  172.    "-//W3C//ENTITIES Symbols//EN//HTML"
  173.    "http://www.w3.org/TR/PR-html40/HTMLsymbol.ent">
  174. %HTMLsymbol;
  175.  
  176. <!ENTITY % HTMLspecial PUBLIC
  177.    "-//W3C//ENTITIES Special//EN//HTML"
  178.    "http://www.w3.org/TR/PR-html40/HTMLspecial.ent">
  179. %HTMLspecial;
  180. <!--=================== Generic Attributes ===============================-->
  181.  
  182. <!ENTITY % coreattrs
  183.  "id          ID         #IMPLIED  -- document-wide unique id --
  184.   class       CDATA      #IMPLIED  -- space separated list of classes --
  185.   style       CDATA      #IMPLIED  -- associated style info --
  186.   title       %Text;     #IMPLIED  -- advisory title/amplification --"
  187.   >
  188.  
  189. <!ENTITY % i18n
  190.  "lang    %LanguageCode; #IMPLIED  -- language code --
  191.   dir         (ltr|rtl)  #IMPLIED  -- direction for weak/neutral text --"
  192.   >
  193.  
  194. <!ENTITY % events
  195.  "onclick     %Script;   #IMPLIED  -- a pointer button was clicked --
  196.   ondblclick  %Script;   #IMPLIED  -- a pointer button was double clicked --
  197.   onmousedown %Script;   #IMPLIED  -- a pointer button was pressed down --
  198.   onmouseup   %Script;   #IMPLIED  -- a pointer button was released --
  199.   onmouseover %Script;   #IMPLIED  -- a pointer was moved onto --
  200.   onmousemove %Script;   #IMPLIED  -- a pointer was moved within --
  201.   onmouseout  %Script;   #IMPLIED  -- a pointer was moved away --
  202.   onkeypress  %Script;   #IMPLIED  -- a key was pressed and released --
  203.   onkeydown   %Script;   #IMPLIED  -- a key was pressed down --
  204.   onkeyup     %Script;   #IMPLIED  -- a key was released --"
  205.   >
  206.  
  207. <!-- Reserved Feature Switch -->
  208. <!ENTITY % HTML.Reserved "IGNORE">
  209.  
  210. <!-- The following attributes are reserved for possible future use -->
  211. <![ %HTML.Reserved; [
  212. <!ENTITY % reserved
  213.  "datasrc     %URL;      #IMPLIED  -- a single or tabular Data Source --
  214.   datafld     CDATA      #IMPLIED  -- the property or column name --
  215.   dataformatas (plaintext|html) plaintext -- text or html --"
  216.   >
  217. ]]>
  218.  
  219. <!ENTITY % reserved "">
  220.  
  221. <!ENTITY % attrs "%coreattrs; %i18n; %events;">
  222.  
  223. <!ENTITY % align "align (left|center|right|justify)  #IMPLIED"
  224.                    -- default is left for ltr paragraphs, right for rtl --
  225.   >
  226.  
  227. <!--=================== Text Markup ======================================-->
  228.  
  229. <!ENTITY % fontstyle
  230.  "TT | I | B | U | S | STRIKE | BIG | SMALL">
  231.  
  232. <!ENTITY % phrase "EM | STRONG | DFN | CODE |
  233.                    SAMP | KBD | VAR | CITE | ABBR">
  234.  
  235. <!ENTITY % special
  236.    "A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |
  237.     MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">
  238.  
  239. <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
  240.  
  241. <!-- %inline; covers inline or "text-level" elements -->
  242. <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
  243.  
  244. <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
  245. <!ATTLIST (%fontstyle;|%phrase;)
  246.   %attrs;                          -- %coreattrs, %i18n, %events --
  247.   >
  248.  
  249. <!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
  250. <!ATTLIST (SUB|SUP)
  251.   %attrs;                          -- %coreattrs, %i18n, %events --
  252.   >
  253.  
  254. <!ELEMENT SPAN - - (%inline;)*     -- generic language/style container -->
  255. <!ATTLIST SPAN
  256.   %attrs;                          -- %coreattrs, %i18n, %events --
  257.   charset     %Charset;   #IMPLIED -- char encoding of linked resource --
  258.   type      %ContentType; #IMPLIED -- advisory content type --
  259.   href        %URL;       #IMPLIED -- URL for linked resource --
  260.   hreflang %LanguageCode; #IMPLIED -- language code --
  261.   target   %FrameTarget;  #IMPLIED -- render in this frame --
  262.   rel         %LinkTypes; #IMPLIED -- forward link types --
  263.   rev         %LinkTypes; #IMPLIED -- reverse link types --
  264.   media       %MediaDesc; #IMPLIED -- for rendering on these media --
  265.   %reserved;               -- reserved for possible future use --
  266.   >
  267.  
  268. <!ELEMENT BDO - - (%inline;)*      -- I18N BiDi over-ride -->
  269. <!ATTLIST BDO
  270.   %coreattrs;                      -- id, class, style, title --
  271.   lang    %LanguageCode; #IMPLIED  -- language code --
  272.   dir         (ltr|rtl)  #REQUIRED -- directionality --
  273.   >
  274.  
  275. <!ELEMENT BASEFONT - O EMPTY -- base font size -->
  276. <!ATTLIST BASEFONT
  277.   id          ID         #IMPLIED  -- document-wide unique id --
  278.   size        CDATA      #REQUIRED -- base font size for FONT elements --
  279.   color       %Color;    #IMPLIED  -- "#RRGGBB" in hex, e.g. red: "#FF0000" --
  280.   face        CDATA      #IMPLIED  -- comma separated list of font names --
  281.   >
  282.  
  283. <!ELEMENT FONT - - (%inline;)*  -- local change to font -->
  284. <!ATTLIST FONT
  285.   %coreattrs;                      -- id, class, style, title --
  286.   %i18n;                   -- lang, dir --
  287.   size        CDATA      #IMPLIED  -- [+|-]nn e.g. size="+1", size="4" --
  288.   color       %Color;    #IMPLIED  -- "#RRGGBB" in hex, e.g. red: "#FF0000" --
  289.   face        CDATA      #IMPLIED  -- comma separated list of font names --
  290.   >
  291.  
  292. <!ELEMENT BR - O EMPTY             -- forced line break -->
  293. <!ATTLIST BR
  294.   %coreattrs;                      -- id, class, style, title --
  295.   clear (left|all|right|none) none -- control of text flow --
  296.   >
  297.  
  298. <!--================== HTML content models ===============================-->
  299.  
  300. <!--
  301.     HTML has two basic content models:
  302.  
  303.         %inline;     character level elements and text strings
  304.         %block;      block-like elements e.g. paragraphs and lists
  305. -->
  306.  
  307. <!ENTITY % block
  308.      "P | %heading; | %list; | %preformatted; | DL | DIV | CENTER |
  309.       NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |
  310.       TABLE | FIELDSET | ADDRESS">
  311.  
  312. <!ENTITY % flow "%block; | %inline;">
  313.  
  314. <!--=================== Document Body ====================================-->
  315.  
  316. <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->
  317. <!ATTLIST BODY
  318.   %attrs;                          -- %coreattrs, %i18n, %events --
  319.   background  %URL;      #IMPLIED  -- texture tile for document background --
  320.   %bodycolors;                     -- bgcolor, text, link, vlink, alink --
  321.   onload      %Script;   #IMPLIED  -- the document has been loaded --
  322.   onunload    %Script;   #IMPLIED  -- the document has been removed --
  323.   >
  324.  
  325. <!ELEMENT ADDRESS - - ((%inline;) | P)* -- information on author -->
  326. <!ATTLIST ADDRESS
  327.   %attrs;                          -- %coreattrs, %i18n, %events --
  328.   >
  329.  
  330. <!ELEMENT DIV - - (%flow;)* -- generic language/style container -->
  331. <!ATTLIST DIV
  332.   %attrs;                          -- %coreattrs, %i18n, %events --
  333.   charset     %Charset;   #IMPLIED -- char encoding of linked resource --
  334.   type      %ContentType; #IMPLIED -- advisory content type --
  335.   href        %URL;       #IMPLIED -- URL for linked resource --
  336.   hreflang %LanguageCode; #IMPLIED -- language code --
  337.   target   %FrameTarget;  #IMPLIED -- render in this frame --
  338.   rel         %LinkTypes; #IMPLIED -- forward link types --
  339.   rev         %LinkTypes; #IMPLIED -- reverse link types --
  340.   media       %MediaDesc; #IMPLIED -- for rendering on these media --
  341.   %align;                          -- align, text alignment --
  342.  
  343.   %reserved;                       -- reserved for possible future use --
  344.   >
  345.  
  346. <!ELEMENT CENTER - - (%flow;)* -- shorthand for DIV with align=center -->
  347. <!ATTLIST CENTER
  348.   %attrs;                          -- %coreattrs, %i18n, %events --
  349.   >
  350.  
  351. <!--================== The Anchor Element ================================-->
  352.  
  353. <!ENTITY % Shape "(rect|circle|poly|default)">
  354. <!ENTITY % Coords "CDATA" -- comma separated list of numbers -->
  355.  
  356. <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
  357. <!ATTLIST A
  358.   %attrs;                          -- %coreattrs, %i18n, %events --
  359.   charset     %Charset;   #IMPLIED -- char encoding of linked resource --
  360.   type      %ContentType; #IMPLIED -- advisory content type --
  361.   name         CDATA      #IMPLIED -- named link end --
  362.   href        %URL;       #IMPLIED -- URL for linked resource --
  363.   hreflang %LanguageCode; #IMPLIED -- language code --
  364.   target   %FrameTarget;  #IMPLIED -- render in this frame --
  365.   rel         %LinkTypes; #IMPLIED -- forward link types --
  366.   rev         %LinkTypes; #IMPLIED -- reverse link types --
  367.   accesskey   %Character; #IMPLIED -- accessibility key character --
  368.   shape       %Shape;     rect     -- for use with OBJECT SHAPES --
  369.   coords      %Coords;    #IMPLIED -- for use with OBJECT SHAPES --
  370.   tabindex     NUMBER     #IMPLIED -- position in tabbing order --
  371.   onfocus     %Script;    #IMPLIED -- the element got the focus --
  372.   onblur      %Script;    #IMPLIED -- the element lost the focus --
  373.   >
  374.  
  375. <!--================== Client-side image maps ============================-->
  376.  
  377. <!-- These can be placed in the same document or grouped in a
  378.      separate document although this isn't yet widely supported -->
  379.  
  380. <!ELEMENT MAP - - (AREA)+ -- client-side image map -->
  381. <!ATTLIST MAP
  382.   %attrs;                          -- %coreattrs, %i18n, %events --
  383.   name        CDATA      #REQUIRED  -- name of image map for refs by usemap --
  384.   >
  385.  
  386. <!ELEMENT AREA - O EMPTY -- client-side image map area -->
  387. <!ATTLIST AREA
  388.   %attrs;                          -- %coreattrs, %i18n, %events --
  389.   shape       %Shape;    rect      -- controls interpretation of coords --
  390.   coords      %Coords;   #IMPLIED  -- comma separated list of lengths --
  391.   href        %URL;      #IMPLIED  -- URL for linked resource --
  392.   target   %FrameTarget;    #IMPLIED -- render in this frame --
  393.   nohref      (nohref)   #IMPLIED  -- this region has no action --
  394.   alt         %Text;     #REQUIRED -- short description --
  395.   tabindex    NUMBER     #IMPLIED  -- position in tabbing order --
  396.   accesskey  %Character; #IMPLIED  -- accessibility key character --
  397.   onfocus     %Script;   #IMPLIED  -- the element got the focus --
  398.   onblur      %Script;   #IMPLIED  -- the element lost the focus --
  399.   >
  400.  
  401. <!--================== The LINK Element ==================================-->
  402.  
  403. <!--
  404.   Relationship values can be used in principle:
  405.  
  406.    a) for document specific toolbars/menus when used
  407.       with the LINK element in document head e.g.
  408.         start, contents, previous, next, index, end, help
  409.    b) to link to a separate style sheet (rel=stylesheet)
  410.    c) to make a link to a script (rel=script)
  411.    d) by stylesheets to control how collections of
  412.       html nodes are rendered into printed documents
  413.    e) to make a link to a printable version of this document
  414.       e.g. a postscript or pdf version (rel=alternate media=print)
  415. -->
  416.  
  417. <!ELEMENT LINK - O EMPTY -- a media-independent link -->
  418. <!ATTLIST LINK
  419.   %attrs;                          -- %coreattrs, %i18n, %events --
  420.   charset     %Charset;   #IMPLIED -- char encoding of linked resource --
  421.   href        %URL;       #IMPLIED -- URL for linked resource --
  422.   hreflang %LanguageCode; #IMPLIED -- language code --
  423.   type      %ContentType; #IMPLIED -- advisory content type --
  424.   rel         %LinkTypes; #IMPLIED -- forward link types --
  425.   rev         %LinkTypes; #IMPLIED -- reverse link types --
  426.   media       %MediaDesc; #IMPLIED -- for rendering on these media --
  427.   target   %FrameTarget;     #IMPLIED -- render in this frame --
  428.   >
  429.  
  430. <!--=================== Images ===========================================-->
  431.  
  432. <!-- Length defined in strict DTD for cellpadding/cellspacing -->
  433. <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
  434. <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
  435.  
  436. <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
  437.  
  438. <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
  439.  
  440. <!ENTITY % IAlign "(top|middle|bottom|left|right)"  -- center? -->
  441.  
  442. <!-- To avoid problems with text-only UAs as well as 
  443.    to make image content understandable and navigable 
  444.    to users of non-visual UAs, you need to provide
  445.    a description with ALT, and avoid server-side image maps -->
  446. <!ELEMENT IMG - O EMPTY            --  Embedded image -->
  447. <!ATTLIST IMG
  448.   %attrs;                          -- %coreattrs, %i18n, %events --
  449.   src         %URL;      #REQUIRED -- URL of image to embed --
  450.   alt         %Text;     #REQUIRED -- short description --
  451.   longdesc    %URL;      #IMPLIED  -- link to long description (complements alt) --
  452.   height      %Length;   #IMPLIED  -- override height --
  453.   width       %Length;   #IMPLIED  -- override width --
  454.   align       %IAlign;   #IMPLIED  -- vertical or horizontal alignment --
  455.   border      %Length;   #IMPLIED  -- link border width --
  456.   hspace      %Pixels;   #IMPLIED  -- horizontal gutter --
  457.   vspace      %Pixels;   #IMPLIED  -- vertical gutter --
  458.   usemap      %URL;      #IMPLIED  -- use client-side image map --
  459.   ismap       (ismap)    #IMPLIED  -- use server-side image map --
  460.   >
  461.  
  462. <!-- USEMAP points to a MAP element which may be in this document
  463.   or an external document, although the latter is not widely supported -->
  464.  
  465. <!--==================== OBJECT ======================================-->
  466. <!--
  467.   OBJECT is used to embed objects as part of HTML pages 
  468.   PARAM elements should precede other content. SGML mixed content
  469.   model technicality precludes specifying this formally ...
  470. -->
  471.  
  472. <!ELEMENT OBJECT - - (PARAM | %flow;)*
  473.  -- generic embedded object -->
  474. <!ATTLIST OBJECT
  475.   %attrs;                          -- %coreattrs, %i18n, %events --
  476.   declare     (declare)  #IMPLIED  -- declare but don't instantiate flag --
  477.   classid     %URL;      #IMPLIED  -- identifies an implementation --
  478.   codebase    %URL;      #IMPLIED  -- base URL for classid, data, archive --
  479.   data        %URL;      #IMPLIED  -- reference to object's data --
  480.   type     %ContentType; #IMPLIED  -- content type for data --
  481.   codetype %ContentType; #IMPLIED  -- content type for code --
  482.   archive     %URL;      #IMPLIED  -- space separated archive list --
  483.   standby     %Text;     #IMPLIED  -- message to show while loading --
  484.   height      %Length;   #IMPLIED  -- override height --
  485.   width       %Length;   #IMPLIED  -- override width --
  486.   align       %IAlign;   #IMPLIED  -- vertical or horizontal alignment --
  487.   border      %Length;   #IMPLIED  -- link border width --
  488.   hspace      %Pixels;   #IMPLIED  -- horizontal gutter --
  489.   vspace      %Pixels;   #IMPLIED  -- vertical gutter --
  490.   usemap      %URL;      #IMPLIED  -- use client-side image map --
  491.   shapes      (shapes)   #IMPLIED  -- object has shaped hypertext links --
  492.   export      (export)   #IMPLIED  -- export shapes to parent  --
  493.   name        CDATA      #IMPLIED  -- submit as part of form --
  494.   tabindex    NUMBER     #IMPLIED  -- position in tabbing order --
  495.   %reserved;                       -- reserved for possible future use --
  496.   >
  497.  
  498. <!ELEMENT PARAM - O EMPTY          -- named property value -->
  499. <!ATTLIST PARAM
  500.   id          ID         #IMPLIED  -- document-wide unique id --
  501.   name        CDATA      #REQUIRED -- property name --
  502.   value       CDATA      #IMPLIED  -- property value --
  503.   valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
  504.   type     %ContentType; #IMPLIED  -- content type for value
  505.                                       when valuetype=ref --
  506.   >
  507.  
  508. <!--=================== Java APPLET ==================================-->
  509. <!--
  510.   One of code or object attributes must be present.
  511.   Place PARAM elements before other content.
  512. -->
  513. <!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet -->
  514. <!ATTLIST APPLET
  515.   %coreattrs;                      -- id, class, style, title --
  516.   codebase    %URL;      #IMPLIED  -- optional base URL for applet --
  517.   archive     CDATA      #IMPLIED  -- comma separated archive list --
  518.   code        CDATA      #IMPLIED  -- applet class file --
  519.   object      CDATA      #IMPLIED  -- serialized applet file --
  520.   alt         %Text;     #IMPLIED  -- short description --
  521.   name        CDATA      #IMPLIED  -- allows applets to find each other --
  522.   width       %Length;   #REQUIRED -- initial width --
  523.   height      %Length;   #REQUIRED -- initial height --
  524.   align       %IAlign;   #IMPLIED  -- vertical or horizontal alignment --
  525.   hspace      %Pixels;   #IMPLIED  -- horizontal gutter --
  526.   vspace      %Pixels;   #IMPLIED  -- vertical gutter --
  527.   >
  528.  
  529. <!--=================== Horizontal Rule ==================================-->
  530.  
  531. <!ELEMENT HR - O EMPTY -- horizontal rule -->
  532. <!ATTLIST HR
  533.   %coreattrs;                      -- id, class, style, title --
  534.   %events;
  535.   align (left|center|right) #IMPLIED
  536.   noshade     (noshade)  #IMPLIED
  537.   size        %Pixels;   #IMPLIED
  538.   width       %Length;   #IMPLIED
  539.   >
  540.  
  541. <!--=================== Paragraphs =======================================-->
  542.  
  543. <!ELEMENT P - O (%inline;)* -- paragraph -->
  544. <!ATTLIST P
  545.   %attrs;                          -- %coreattrs, %i18n, %events --
  546.   %align;                          -- align, text alignment --
  547.   >
  548.  
  549. <!--=================== Headings =========================================-->
  550.  
  551. <!--
  552.   There are six levels of headings from H1 (the most important)
  553.   to H6 (the least important).
  554. -->
  555.  
  556. <!ELEMENT (%heading;)  - - (%inline;)* -- heading -->
  557. <!ATTLIST (%heading;)
  558.   %attrs;                          -- %coreattrs, %i18n, %events --
  559.   %align;                          -- align, text alignment --
  560.   >
  561.  
  562. <!--=================== Preformatted Text ================================-->
  563.  
  564. <!-- excludes markup for images and changes in font size -->
  565. <!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">
  566.  
  567. <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
  568. <!ATTLIST PRE
  569.   %attrs;                          -- %coreattrs, %i18n, %events --
  570.   width       NUMBER     #IMPLIED
  571.   >
  572.  
  573. <!--===================== Inline Quotes ==================================-->
  574.  
  575. <!ELEMENT Q - - (%inline;)* -- short inline quotation -->
  576. <!ATTLIST Q
  577.   %attrs;                          -- %coreattrs, %i18n, %events --
  578.   cite        %URL;      #IMPLIED  -- URL for source document or msg --
  579.   >
  580.  
  581. <!--=================== Block-like Quotes ================================-->
  582.  
  583. <!ELEMENT BLOCKQUOTE - - (%flow;)* -- long quotation -->
  584. <!ATTLIST BLOCKQUOTE
  585.   %attrs;                          -- %coreattrs, %i18n, %events --
  586.   cite        %URL;      #IMPLIED  -- URL for source document or msg --
  587.   >
  588.  
  589. <!--=================== Inserted/Deleted Text ============================-->
  590.  
  591.  
  592. <!-- INS/DEL are handled by inclusion on BODY -->
  593. <!ELEMENT (INS|DEL) - - (%flow;)* -- inserted text, deleted text -->
  594. <!ATTLIST (INS|DEL)
  595.   %attrs;                          -- %coreattrs, %i18n, %events --
  596.   cite        %URL;      #IMPLIED  -- info on reason for change --
  597.   datetime    %Datetime; #IMPLIED  -- date and time of change --
  598.   >
  599.  
  600. <!--=================== Lists ============================================-->
  601.  
  602. <!-- definition lists - DT for term, DD for its definition -->
  603.  
  604. <!ELEMENT DL - - (DT|DD)+ -- definition list -->
  605. <!ATTLIST DL
  606.   %attrs;                          -- %coreattrs, %i18n, %events --
  607.   compact     (compact)  #IMPLIED  -- reduced interitem spacing --
  608.   >
  609.  
  610. <!ELEMENT DT - O (%inline;)* -- definition term -->
  611. <!ELEMENT DD - O (%flow;)*   -- definition description -->
  612. <!ATTLIST (DT|DD)
  613.   %attrs;                         -- %coreattrs, %i18n, %events --
  614.   >
  615.  
  616. <!-- Ordered lists (OL) Numbering style
  617.  
  618.     1   arablic numbers     1, 2, 3, ...
  619.     a   lower alpha         a, b, c, ...
  620.     A   upper alpha         A, B, C, ...
  621.     i   lower roman         i, ii, iii, ...
  622.     I   upper roman         I, II, III, ...
  623.  
  624.     The style is applied to the sequence number which by default
  625.     is reset to 1 for the first list item in an ordered list.
  626.  
  627.     This can't be expressed directly in SGML due to case folding.
  628. -->
  629.  
  630. <!ENTITY % OLStyle "CDATA"      -- constrained to: "(1|a|A|i|I)" -->
  631.  
  632. <!ELEMENT OL - - (LI)+ -- ordered list -->
  633. <!ATTLIST OL
  634.   %attrs;                          -- %coreattrs, %i18n, %events --
  635.   type        %OLStyle;  #IMPLIED  -- numbering style --
  636.   compact     (compact)  #IMPLIED  -- reduced interitem spacing --
  637.   start       NUMBER     #IMPLIED  -- starting sequence number --
  638.   >
  639.  
  640. <!-- Unordered Lists (UL) bullet styles -->
  641. <!ENTITY % ULStyle "(disc|square|circle)">
  642.  
  643. <!ELEMENT UL - - (LI)+ -- unordered list -->
  644. <!ATTLIST UL
  645.   %attrs;                          -- %coreattrs, %i18n, %events --
  646.   type        %ULStyle;  #IMPLIED  -- bullet style --
  647.   compact     (compact)  #IMPLIED  -- reduced interitem spacing --
  648.   >
  649.  
  650. <!ELEMENT (DIR|MENU) - - (LI)+ -(%block;) -- directory list, menu list -->
  651. <!ATTLIST DIR
  652.   %attrs;                          -- %coreattrs, %i18n, %events --
  653.   compact     (compact)  #IMPLIED
  654.   >
  655. <!ATTLIST MENU
  656.   %attrs;                          -- %coreattrs, %i18n, %events --
  657.   compact     (compact)  #IMPLIED
  658.   >
  659.  
  660. <!-- <DIR>              Directory list                  -->
  661. <!-- <DIR COMPACT>      Compact list style              -->
  662. <!-- <MENU>             Menu list                       -->
  663. <!-- <MENU COMPACT>     Compact list style              -->
  664.  
  665. <!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle;|%OLStyle;)" -->
  666.  
  667. <!ELEMENT LI - O (%flow;)* -- list item -->
  668. <!ATTLIST LI
  669.   %attrs;                          -- %coreattrs, %i18n, %events --
  670.   type        %LIStyle;  #IMPLIED  -- list item style --
  671.   value       NUMBER     #IMPLIED  -- reset sequence number --
  672.   >
  673.  
  674. <!--================ Forms ===============================================-->
  675. <!ELEMENT FORM - - (%flow;)* -(FORM) -- interactive form -->
  676. <!ATTLIST FORM
  677.   %attrs;                          -- %coreattrs, %i18n, %events --
  678.   action      %URL;      #REQUIRED -- server-side form handler --
  679.   method      (GET|POST) GET       -- HTTP method used to submit the form --
  680.   enctype  %ContentType; "application/x-www-form-urlencoded"
  681.   onsubmit    %Script;   #IMPLIED  -- the form was submitted --
  682.   onreset     %Script;   #IMPLIED  -- the form was reset --
  683.   target   %FrameTarget;    #IMPLIED -- render in this frame --
  684.   accept-charset %Charsets; #IMPLIED -- list of supported charsets --
  685.   >
  686.  
  687. <!-- Each label must not contain more than ONE field -->
  688. <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
  689. <!ATTLIST LABEL
  690.   %attrs;                          -- %coreattrs, %i18n, %events --
  691.   for         IDREF      #IMPLIED  -- matches field ID value --
  692.   accesskey  %Character; #IMPLIED  -- accessibility key character --
  693.   onfocus     %Script;   #IMPLIED  -- the element got the focus --
  694.   onblur      %Script;   #IMPLIED  -- the element lost the focus --
  695.   >
  696.  
  697. <!ENTITY % InputType
  698.   "(TEXT | PASSWORD | CHECKBOX |
  699.     RADIO | SUBMIT | RESET |
  700.     FILE | HIDDEN | IMAGE | BUTTON)"
  701.    >
  702.  
  703. <!-- attribute name required for all but submit & reset -->
  704. <!ELEMENT INPUT - O EMPTY -- form control -->
  705. <!ATTLIST INPUT
  706.   %attrs;                          -- %coreattrs, %i18n, %events --
  707.   type       %InputType; TEXT      -- what kind of widget is needed --
  708.   name        CDATA      #IMPLIED  -- submit as part of form --
  709.   value       CDATA      #IMPLIED  -- required for radio and checkboxes --
  710.   checked   (checked)    #IMPLIED  -- for radio buttons and check boxes --
  711.   disabled  (disabled)   #IMPLIED  -- control is unavailable in this context --
  712.   readonly  (readonly)   #IMPLIED  -- for text and passwd --
  713.   size        CDATA      #IMPLIED  -- specific to each type of field --
  714.   maxlength   NUMBER     #IMPLIED  -- max chars for text fields --
  715.   src         %URL;      #IMPLIED  -- for fields with images --
  716.   alt         CDATA      #IMPLIED  -- short description --
  717.   usemap      %URL;      #IMPLIED  -- use client-side image map --
  718.   align       %IAlign;   #IMPLIED  -- vertical or horizontal alignment --
  719.   tabindex    NUMBER     #IMPLIED  -- position in tabbing order --
  720.   accesskey  %Character; #IMPLIED  -- accessibility key character --
  721.   onfocus     %Script;   #IMPLIED  -- the element got the focus --
  722.   onblur      %Script;   #IMPLIED  -- the element lost the focus --
  723.   onselect    %Script;   #IMPLIED  -- some text was selected --
  724.   onchange    %Script;   #IMPLIED  -- the element value was changed --
  725.   accept  %ContentTypes; #IMPLIED  -- list of MIME types for file upload --
  726.   %reserved;                       -- reserved for possible future use --
  727.   >
  728.  
  729. <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
  730. <!ATTLIST SELECT
  731.   %attrs;                          -- %coreattrs, %i18n, %events --
  732.   name        CDATA      #IMPLIED  -- field name --
  733.   size        NUMBER     #IMPLIED  -- rows visible --
  734.   multiple    (multiple) #IMPLIED  -- default is single selection --
  735.   disabled    (disabled) #IMPLIED  -- control is unavailable in this context --
  736.   tabindex    NUMBER     #IMPLIED  -- position in tabbing order --
  737.   onfocus     %Script;   #IMPLIED  -- the element got the focus --
  738.   onblur      %Script;   #IMPLIED  -- the element lost the focus --
  739.   onchange    %Script;   #IMPLIED  -- the element value was changed --
  740.   %reserved;                       -- reserved for possible future use --
  741.   >
  742.  
  743. <!ELEMENT OPTGROUP - - (OPTGROUP|OPTION)+ -- option group -->
  744. <!ATTLIST OPTGROUP
  745.   %attrs;                          -- %coreattrs, %i18n, %events --
  746.   disabled    (disabled) #IMPLIED  -- control is unavailable in this context --
  747.   label       %Text;     #REQUIRED -- for use in hierarchical menus --
  748.   >
  749.  
  750. <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
  751. <!ATTLIST OPTION
  752.   %attrs;                          -- %coreattrs, %i18n, %events --
  753.   selected    (selected) #IMPLIED
  754.   disabled    (disabled) #IMPLIED  -- control is unavailable in this context --
  755.   label       %Text;     #IMPLIED  -- for use in hierarchical menus --
  756.   value       CDATA      #IMPLIED  -- defaults to element content --
  757.   >
  758.  
  759. <!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
  760. <!ATTLIST TEXTAREA
  761.   %attrs;                          -- %coreattrs, %i18n, %events --
  762.   name        CDATA      #IMPLIED
  763.   rows        NUMBER     #REQUIRED
  764.   cols        NUMBER     #REQUIRED
  765.   disabled    (disabled) #IMPLIED  -- control is unavailable in this context --
  766.   readonly    (readonly) #IMPLIED
  767.   tabindex    NUMBER     #IMPLIED  -- position in tabbing order --
  768.   onfocus     %Script;   #IMPLIED  -- the element got the focus --
  769.   onblur      %Script;   #IMPLIED  -- the element lost the focus --
  770.   onselect    %Script;   #IMPLIED  -- some text was selected --
  771.   onchange    %Script;   #IMPLIED  -- the element value was changed --
  772.   %reserved;                       -- reserved for possible future use --
  773.   >
  774.  
  775. <!--
  776.   #PCDATA is to solve the mixed content problem,
  777.   per specification only whitespace is allowed there!
  778.  -->
  779. <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
  780. <!ATTLIST FIELDSET
  781.   %attrs;                          -- %coreattrs, %i18n, %events --
  782.   >
  783.  
  784. <!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
  785. <!ENTITY % LAlign "(top|bottom|left|right)">
  786.  
  787. <!ATTLIST LEGEND
  788.   %attrs;                          -- %coreattrs, %i18n, %events --
  789.   align       %LAlign;   #IMPLIED  -- relative to fieldset --
  790.   accesskey  %Character; #IMPLIED  -- accessibility key character --
  791.   >
  792.  
  793. <!ELEMENT BUTTON - -
  794.      (%flow;)* -(A|%formctrl;|FORM|ISINDEX|FIELDSET|IFRAME)
  795.      -- push button -->
  796. <!ATTLIST BUTTON
  797.   %attrs;                          -- %coreattrs, %i18n, %events --
  798.   name        CDATA      #IMPLIED  -- for scripting/forms as submit button --
  799.   value       CDATA      #IMPLIED  -- gets passed to server when submitted --
  800.   type (button|submit|reset) submit -- for use as form submit/reset button --
  801.   disabled    (disabled) #IMPLIED  -- control is unavailable in this context --
  802.   tabindex    NUMBER     #IMPLIED  -- position in tabbing order --
  803.   accesskey  %Character; #IMPLIED  -- accessibility key character --
  804.   onfocus     %Script;   #IMPLIED  -- the element got the focus --
  805.   onblur      %Script;   #IMPLIED  -- the element lost the focus --
  806.   %reserved;                       -- reserved for possible future use --
  807.   >
  808.  
  809. <!--======================= Tables =======================================-->
  810.  
  811. <!-- IETF HTML table standard, see [RFC1942] -->
  812.  
  813. <!--
  814.  The BORDER attribute sets the thickness of the frame around the
  815.  table. The default units are screen pixels.
  816.  
  817.  The FRAME attribute specifies which parts of the frame around
  818.  the table should be rendered. The values are not the same as
  819.  CALS to avoid a name clash with the VALIGN attribute.
  820.  
  821.  The value "border" is included for backwards compatibility with
  822.  <TABLE BORDER> which yields frame=border and border=implied
  823.  For <TABLE BORDER=1> you get border=1 and frame=implied. In this
  824.  case, it is appropriate to treat this as frame=border for backwards
  825.  compatibility with deployed browsers.
  826. -->
  827. <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
  828.  
  829. <!--
  830.  The RULES attribute defines which rules to draw between cells:
  831.  
  832.  If RULES is absent then assume:
  833.      "none" if BORDER is absent or BORDER=0 otherwise "all"
  834. -->
  835.  
  836. <!ENTITY % TRules "(none | groups | rows | cols | all)">
  837.   
  838. <!-- horizontal placement of table relative to document -->
  839. <!ENTITY % TAlign "(left|center|right)">
  840.  
  841. <!-- horizontal alignment attributes for cell contents -->
  842. <!ENTITY % cellhalign
  843.   "align (left|center|right|justify|char) #IMPLIED
  844.    char       %Character;   #IMPLIED  -- alignment char, e.g. char=':' --
  845.    charoff    %Length;      #IMPLIED  -- offset for alignment char --"
  846.   >
  847.  
  848. <!-- vertical alignment attributes for cell contents -->
  849. <!ENTITY % cellvalign
  850.   "valign (top|middle|bottom|baseline) #IMPLIED"
  851.   >
  852.  
  853. <!ELEMENT TABLE - -
  854.      (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
  855. <!ELEMENT CAPTION  - - (%inline;)* -- table caption -->
  856. <!ELEMENT THEAD    - O (TR)+       -- table header -->
  857. <!ELEMENT TFOOT    - O (TR)+       -- table footer -->
  858. <!ELEMENT TBODY    O O (TR)+       -- table body -->
  859. <!ELEMENT COLGROUP - O (col)*      -- table column group -->
  860. <!ELEMENT COL      - O EMPTY       -- table column -->
  861. <!ELEMENT TR       - O (TH|TD)+    -- table row -->
  862. <!ELEMENT (TH|TD)  - O (%flow;)*   -- table header cell, table data cell -->
  863.  
  864. <!ATTLIST TABLE                 -- table element --
  865.   %attrs;                          -- %coreattrs, %i18n, %events --
  866.   summary     %Text;     #IMPLIED  -- purpose/structure for speech output --
  867.   align       %TAlign;   #IMPLIED  -- table position relative to window --
  868.   bgcolor     %Color;    #IMPLIED  -- background color for cells --
  869.   width       %Pixels;   #IMPLIED  -- table width relative to window --
  870.   border      CDATA      #IMPLIED  -- controls frame width around table --
  871.   frame       %TFrame;   #IMPLIED  -- which parts of table frame to include --
  872.   rules       %TRules;   #IMPLIED  -- rulings between rows and cols --
  873.   cellspacing %Length;   #IMPLIED  -- spacing between cells --
  874.   cellpadding %Length;   #IMPLIED  -- spacing within cells --
  875.   %reserved;                       -- reserved for possible future use --
  876.   >
  877.  
  878. <!ENTITY % CAlign "(top|bottom|left|right)">
  879.  
  880. <!ATTLIST CAPTION
  881.   %attrs;                          -- %coreattrs, %i18n, %events --
  882.   align       %CAlign;   #IMPLIED  -- relative to table --
  883.   >
  884.  
  885. <!--
  886. COLGROUP groups a set of COL elements. It allows you to group
  887. several semantically related columns together.
  888. -->
  889. <!ATTLIST COLGROUP
  890.   %attrs;                          -- %coreattrs, %i18n, %events --
  891.   span        NUMBER     1         -- default number of columns in group --
  892.   width    %MultiLength; #IMPLIED  -- default width for enclosed COLs --
  893.   %cellhalign;                     -- horizontal alignment in cells --
  894.   %cellvalign;                     -- vertical alignment in cells --
  895.   >
  896.  
  897. <!--
  898.  COL elements define the alignment properties for cells in
  899.  one or more columns.
  900.  
  901.  The WIDTH attribute specifies the width of the columns, e.g.
  902.  
  903.      width=64        width in screen pixels
  904.      width=0.5*      relative width of 0.5
  905.  
  906.  The REPEAT attribute allows you to repeat the effects of
  907.  a COL element as if the same element was repeated n times.
  908.  There are no grouping semantics for repeated columns.
  909. -->
  910. <!ATTLIST COL                   -- column groups and properties --
  911.   %attrs;                          -- %coreattrs, %i18n, %events --
  912.   repeat      NUMBER     1         -- repeat count for COL --
  913.   width    %MultiLength; #IMPLIED  -- column width specification --
  914.   %cellhalign;                     -- horizontal alignment in cells --
  915.   %cellvalign;                     -- vertical alignment in cells --
  916.   >
  917.  
  918. <!--
  919.     Use THEAD to duplicate headers when breaking table
  920.     across page boundaries, or for static headers when
  921.     TBODY sections are rendered in scrolling panel.
  922.  
  923.     Use TFOOT to duplicate footers when breaking table
  924.     across page boundaries, or for static footers when
  925.     TBODY sections are rendered in scrolling panel.
  926.  
  927.     Use multiple TBODY sections when rules are needed
  928.     between groups of table rows.
  929. -->
  930. <!ATTLIST (THEAD|TBODY|TFOOT)   -- table section --
  931.   %attrs;                          -- %coreattrs, %i18n, %events --
  932.   %cellhalign;                     -- horizontal alignment in cells --
  933.   %cellvalign;                     -- vertical alignment in cells --
  934.   >
  935.  
  936. <!ATTLIST TR                    -- table row --
  937.   %attrs;                          -- %coreattrs, %i18n, %events --
  938.   %cellhalign;                     -- horizontal alignment in cells --
  939.   %cellvalign;                     -- vertical alignment in cells --
  940.   bgcolor     %Color;    #IMPLIED  -- background color for row --
  941.   >
  942.  
  943.  
  944. <!-- Scope is simpler than axes attribute for common tables -->
  945. <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
  946.  
  947. <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
  948. <!ATTLIST (TH|TD)               -- header or data cell --
  949.   %attrs;                          -- %coreattrs, %i18n, %events --
  950.   abbr        %Text;     #IMPLIED  -- abbreviation for header cell --
  951.   axis        CDATA      #IMPLIED  -- names groups of related headers--
  952.   headers     IDREFS     #IMPLIED  -- list of id's for header cells --
  953.   scope       %Scope;    #IMPLIED  -- scope covered by header cells --
  954.   nowrap      (nowrap)   #IMPLIED  -- suppress word wrap --
  955.   bgcolor     %Color;    #IMPLIED  -- cell background color --
  956.   rowspan     NUMBER     1         -- number of rows spanned by cell --
  957.   colspan     NUMBER     1         -- number of cols spanned by cell --
  958.   %cellhalign;                     -- horizontal alignment in cells --
  959.   %cellvalign;                     -- vertical alignment in cells --
  960.   width       %Pixels;   #IMPLIED  -- width for cell --
  961.   height      %Pixels;   #IMPLIED  -- height for cell --
  962.   >
  963.  
  964. <!--================== Document Frames ===================================-->
  965.  
  966. <!--
  967.   The content model for HTML documents depends on whether the HEAD is
  968.   followed by a FRAMESET or BODY element. The widespread omission of
  969.   the BODY start tag makes it impractical to define the content model
  970.   without the use of a marked section.
  971. -->
  972.  
  973. <!-- Feature Switch for frameset documents -->
  974. <!ENTITY % HTML.Frameset "IGNORE">
  975.  
  976. <![ %HTML.Frameset; [
  977. <!ELEMENT FRAMESET - - ((FRAMESET|FRAME)+ & NOFRAMES?)
  978.   -- window subdivision -->
  979. <!ATTLIST FRAMESET
  980.   %coreattrs;                      -- id, class, style, title --
  981.   rows    %MultiLengths; #IMPLIED  -- list of lengths. Default: 100% (1 row) --
  982.   cols    %MultiLengths; #IMPLIED  -- list of lengths. Default: 100% (1 col) --
  983.   onload      %Script;   #IMPLIED  -- all the frames have been loaded  -- 
  984.   onunload    %Script;   #IMPLIED  -- all the frames have been removed -- 
  985.   >
  986. ]]>
  987.  
  988. <![ %HTML.Frameset; [
  989. <!-- reserved frame names start with "_" otherwise starts with letter -->
  990. <!ELEMENT FRAME - O EMPTY -- subwindow -->
  991. <!ATTLIST FRAME
  992.   %coreattrs;                      -- id, class, style, title --
  993.   longdesc    %URL;      #IMPLIED  -- link to long description (complements title) --
  994.   name        CDATA      #IMPLIED  -- name of frame for targetting --
  995.   src         %URL;      #IMPLIED  -- source of frame content --
  996.   frameborder (1|0)      1         -- request frame borders? --
  997.   marginwidth %Pixels;   #IMPLIED  -- margin widths in pixels --
  998.   marginheight %Pixels;  #IMPLIED  -- margin height in pixels --
  999.   noresize    (noresize) #IMPLIED  -- allow users to resize frames? --
  1000.   scrolling (yes|no|auto) auto     -- scrollbar or none --
  1001.   >
  1002. ]]>
  1003.  
  1004. <!ELEMENT IFRAME - - (%flow;)* -- inline subwindow -->
  1005. <!ATTLIST IFRAME
  1006.   %coreattrs;                      -- id, class, style, title --
  1007.   longdesc    %URL;       #IMPLIED  -- link to long description (complements title) --
  1008.   name        CDATA      #IMPLIED  -- name of frame for targetting --
  1009.   src         %URL;      #IMPLIED  -- source of frame content --
  1010.   frameborder (1|0)      1         -- request frame borders? --
  1011.   marginwidth %Pixels;   #IMPLIED  -- margin widths in pixels --
  1012.   marginheight %Pixels;  #IMPLIED  -- margin height in pixels --
  1013.   scrolling (yes|no|auto) auto     -- scrollbar or none --
  1014.   align       %IAlign;   #IMPLIED  -- vertical or horizontal alignment --
  1015.   height      %Length;   #IMPLIED  -- frame height --
  1016.   width       %Length;   #IMPLIED  -- frame width --
  1017.   >
  1018.  
  1019. <![ %HTML.Frameset; [
  1020. <!ENTITY % noframes.content "(BODY) -(NOFRAMES)">
  1021. ]]>
  1022.  
  1023. <!ENTITY % noframes.content "(%flow;)*">
  1024.  
  1025. <!ELEMENT NOFRAMES - - %noframes.content;
  1026.  -- alternate content container for non frame-based rendering -->
  1027. <!ATTLIST NOFRAMES
  1028.   %attrs;                          -- %coreattrs, %i18n, %events --
  1029.   >
  1030.  
  1031. <!--================ Document Head =======================================-->
  1032. <!-- %head.misc; defined earlier on as "SCRIPT | STYLE | META | LINK" -->
  1033. <!ENTITY % head.content "TITLE & ISINDEX? & BASE?">
  1034.  
  1035. <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
  1036. <!ATTLIST HEAD
  1037.   %i18n;                           -- lang, dir --
  1038.   profile     %URL;      #IMPLIED  -- named dictionary of meta info --
  1039.   >
  1040.  
  1041. <!-- The TITLE element is not considered part of the flow of text.
  1042.        It should be displayed, for example as the page header or
  1043.        window title. Exactly one title is required per document.
  1044.     -->
  1045. <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
  1046. <!ATTLIST TITLE %i18n>
  1047.  
  1048. <!ELEMENT ISINDEX - O EMPTY -- single line prompt -->
  1049. <!ATTLIST ISINDEX
  1050.   %coreattrs;                      -- id, class, style, title --
  1051.   %i18n;                           -- lang, dir --
  1052.   prompt      %Text;    #IMPLIED  -- prompt message -->
  1053.  
  1054. <!ELEMENT BASE - O EMPTY -- document base URL -->
  1055. <!ATTLIST BASE
  1056.   href        %URL;      #IMPLIED  -- URL that acts as base URL --
  1057.   target   %FrameTarget;    #IMPLIED -- render in this frame --
  1058.   >
  1059.  
  1060. <!ELEMENT META - O EMPTY        -- generic metainformation -->
  1061. <!ATTLIST META
  1062.   %i18n;                           -- lang, dir, for use with content string --
  1063.   http-equiv  NAME       #IMPLIED  -- HTTP response header name  --
  1064.   name        NAME       #IMPLIED  -- metainformation name --
  1065.   content     CDATA      #REQUIRED -- associated information --
  1066.   scheme      CDATA      #IMPLIED  -- select form of content --
  1067.   >
  1068.  
  1069. <!ELEMENT STYLE - - CDATA      -- style info -->
  1070. <!ATTLIST STYLE
  1071.   %i18n;                           -- lang, dir, for use with title --
  1072.   type     %ContentType; #REQUIRED -- content type of style language --
  1073.   media     %MediaDesc;  #IMPLIED  -- designed for use with these media --
  1074.   title     %Text;       #IMPLIED  -- advisory title --
  1075.   >
  1076.  
  1077. <!ELEMENT SCRIPT - - CDATA      -- script statements -->
  1078. <!ATTLIST SCRIPT
  1079.   charset  %Charset;     #IMPLIED -- char encoding of linked resource --
  1080.   type     %ContentType; #REQUIRED -- content type of script language --
  1081.   language    CDATA      #IMPLIED  -- predefined script language name --
  1082.   src         %URL;      #IMPLIED  -- URL for an external script --
  1083.   defer       (defer)    #IMPLIED  -- UA may defer execution of script --
  1084.   >
  1085.  
  1086. <!ELEMENT NOSCRIPT - - (%flow;)*
  1087.   -- alternate content container for non script-based rendering -->
  1088. <!ATTLIST NOSCRIPT
  1089.   %attrs;                          -- %coreattrs, %i18n, %events --
  1090.   >
  1091.  
  1092. <!--================ Document Structure ==================================-->
  1093. <!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
  1094.  
  1095. <![ %HTML.Frameset; [
  1096. <!ENTITY % html.content "HEAD, FRAMESET">
  1097. ]]>
  1098.  
  1099. <!ENTITY % html.content "HEAD, BODY">
  1100.  
  1101. <!ELEMENT HTML O O (%html.content;) -- document root element -->
  1102. <!ATTLIST HTML
  1103.   %version;
  1104.   %i18n;                           -- lang, dir --
  1105.   >
  1106.