home *** CD-ROM | disk | FTP | other *** search
/ Magazyn WWW 1999 July / www_07_1999.iso / prez / amiga / CheckHTML.lha / CheckHTML / SGML / HTML40.dtd < prev    next >
Text File  |  1998-01-25  |  35KB  |  864 lines

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