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

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