文档类型定义

<!--
牋牋牋� This is an EXPERIMENTAL version of HTML 4.0 that
牋牋牋� extends HTML 3.2 to add support for proposals under review by
牋牋牋� the W3C HTML Working Group, including style sheets, scripting,
牋牋牋� the object tag, internationalization and some extensions to
牋牋牋� forms for improved accessibility by people with disabilities.
牋牋牋� The frame tags have been added in acknowledgement of their
牋牋牋� widespread deployment.

牋牋牋牋牋� Draft: $Date: 1997/07/08 10:47:55 $

牋牋牋牋牋� Authors:
牋牋牋牋牋牋牋� Dave Raggett <dsr@w3.org>
牋牋牋牋牋牋牋� Arnaud Le Hors <lehors@w3.org>

牋牋牋� This is work in progress, subject to change at any time.
牋牋牋� It does not imply endorsement by, or the consensus of,
牋牋牋� either W3C or members of the HTML working group. Further
牋牋牋� information about HTML 4.0 is available at:

牋牋牋牋牋� http://www.w3.org/TR/WD-html40-970708/.
-->
<!ENTITY %HTML.Version "http://www.w3.org/TR/WD-html40-970708/HTML4.dtd"
� -- Typical usage:



� <!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40-970708/HTML4.dtd">
� <html>
� ...
� </html>
� --
>

<!--================== Imported Names ====================================-->

<!ENTITY %ContentType "CDATA"
牋� -- an Internet media type, as per [RFC2045]
牋� -->

<!ENTITY %URL "CDATA"
牋� -- a Uniform Resource Locator,
牋牋牋 see [RFC1808] and [RFC1738]
牋� -->

<!ENTITY %Script "CDATA" -- scriptlet -->

<!-- Parameter Entities -->

<!ENTITY %head.misc "SCRIPT|STYLE|META|LINK" -- repeatable head elements -->

<!ENTITY %heading "H1|H2|H3|H4|H5|H6">

<!ENTITY %list "UL | OL |� DIR | MENU">

<!ENTITY %preformatted "PRE">

<!--================ Character mnemonic entities =========================-->

<!ENTITY %HTMLlat1 PUBLIC
牋 "-//W3C//ENTITIES Latin1//EN//HTML">
%HTMLlat1;

<!ENTITY %HTMLsymbol PUBLIC
牋 "-//W3C//ENTITIES Symbols//EN//HTML">
%HTMLsymbol;

<!ENTITY %HTMLspecial PUBLIC
牋 "-//W3C//ENTITIES Special//EN//HTML">
%HTMLspecial;

<!--=================== Generic Attributes ===============================-->

<!ENTITY %coreattrs "id牋牋牋牋� ID牋牋牋牋 #IMPLIED� -- document-wide unique id --
� class牋牋牋 CDATA牋牋� #IMPLIED� -- space separated list of classes --
� style牋牋牋 CDATA牋牋� #IMPLIED� -- associated style info --
� title牋牋牋 CDATA牋牋� #IMPLIED� -- advisory title/amplification --"
� >

<!ENTITY %i18n "lang牋牋牋� NAME牋牋牋 #IMPLIED� -- [RFC1766] language value --
� dir牋牋牋牋 (ltr|rtl)� #IMPLIED� -- direction for weak/neutral text --"
� >

<!ENTITY %evens "onclick牋牋 %Script牋� #IMPLIED� -- the pointing device button was clicked --
� ondblclick� %Script牋� #IMPLIED� -- the pointing device button was double clicked --
� onmousedown %Script牋� #IMPLIED� -- the pointing device button was pressed down --
� onmouseup牋 %Script牋� #IMPLIED� -- the pointing device button was released --
� onmouseover %Script牋� #IMPLIED� -- the pointing device was moved over --
� onmousemove %Script牋� #IMPLIED� -- the pointing device was moved --
� onmouseout� %Script牋� #IMPLIED� -- the pointing device was moved away --

� onkeypress� %Script牋� #IMPLIED� -- a key was pressed and released --
� onkeydown牋 %Script牋� #IMPLIED� -- a key was pressed down --
� onkeyup牋牋 %Script牋� #IMPLIED� -- a key was released --"
� >


<!ENTITY %attrs "%coreattrs %i18n %events">

<!ENTITY %align "align (left|center|right|justify)� #IMPLIED"
牋牋牋牋牋牋牋牋牋 -- default is left for ltr paragraphs, right for rtl --
� >

<!--=================== Text Markup ======================================-->

<!ENTITY %font "TT | I | B | U | S | STRIKE | BIG | SMALL">

<!ENTITY %phrase "EM | STRONG | DFN | CODE |
牋牋牋牋牋牋牋牋牋 SAMP | KBD | VAR | CITE | ACRONYM">

<!ENTITY %special
牋 "A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |
牋� MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">

<!ENTITY %formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">

<!-- %inline covers inline or "text-level" elements -->
<!ENTITY %inline "#PCDATA | %font | %phrase | %special | %formctrl">

<!ELEMENT (%font|%phrase) - - (%inline)*>
<!ATTLIST (%font|%phrase)
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!-- subscripts and superscripts -->
<!ELEMENT (SUB|SUP) - - (%inline)*>
<!ATTLIST (SUB|SUP)
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!ELEMENT SPAN - - (%inline)*牋牋 -- generic language/style container -->
<!ATTLIST SPAN
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!-- INS/DEL are handled by inclusion on BODY -->
<!ELEMENT (INS|DEL) - - (%inline)* -- inserted/deleted text -->
<!ATTLIST (INS|DEL)
� %attrs牋牋牋牋牋牋牋牋牋牋牋牋牋 -- %coreattrs, %i18n, %events --
� cite牋牋牋� %URL牋牋� #IMPLIED牋 -- info on reason for change --
� datetime牋� CDATA牋牋 #IMPLIED牋 -- when changed: ISO date format --
� >

<!ELEMENT BDO - - (%inline)*牋牋� -- I18N BiDi over-ride -->
<!ATTLIST BDO
� lang牋牋牋� NAME牋牋牋 #IMPLIED� -- [RFC1766] language value --
� dir牋牋牋牋 (ltr|rtl)� #REQUIRED -- directionality --
� >

<!ELEMENT BASEFONT - O EMPTY>
<!ATTLIST BASEFONT
� size牋牋牋 CDATA牋牋� #REQUIRED -- base font size for FONT elements --
� color牋牋牋 CDATA牋牋� #IMPLIED� -- #RRGGBB in hex, e.g. red: "#FF0000" --
� face牋牋牋� CDATA牋牋� #IMPLIED� -- comma separated list of font names --
� >

<!ELEMENT FONT - - (%inline)*牋 -- local change to font -->
<!ATTLIST FONT
� size牋牋牋� CDATA牋牋� #IMPLIED� -- [+]nn e.g. size="+1", size=4 --
� color牋牋牋 CDATA牋牋� #IMPLIED� -- #RRGGBB in hex, e.g. red: "#FF0000" --
� face牋牋牋� CDATA牋牋� #IMPLIED� -- comma separated list of font names --
� >

<!ELEMENT BR - O EMPTY牋牋牋牋� -- forced line break -->
<!ATTLIST BR
� %coreattrs;牋牋牋牋牋牋牋牋牋牋� -- id, class, style, title --
� clear (left|all|right|none) none -- control of text flow --
� >

<!--================== HTML content models ===============================-->

<!--
牋� HTML has two basic content models:

牋牋牋� %inline牋牋 character level elements and text strings
牋牋牋� %block牋牋� block-like elements e.g. paragraphs and lists
-->

<!ENTITY %blocklevel
牋牋 "P | %heading | %list | %preformatted | DL | DIV | CENTER |
牋牋� NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |
牋牋� TABLE | FIELDSET | ADDRESS">

<!--=================== Document Body ====================================-->

<!ENTITY %block "(%blocklevel | %inline)*">

<!ENTITY %Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->

<!-- There are also 16 widely known color names with their sRGB values:

牋� Black� = #000000牋� Green� = #008000
牋� Silver = #C0C0C0牋� Lime牋 = #00FF00
牋� Gray牋 = #808080牋� Olive� = #808000
牋� White� = #FFFFFF牋� Yellow = #FFFF00
牋� Maroon = #800000牋� Navy牋 = #000080
牋� Red牋� = #FF0000牋� Blue牋 = #0000FF
牋� Purple = #800080牋� Teal牋 = #008080
牋� Fuchsia= #FF00FF牋� Aqua牋 = #00FFFF
�-->

<!ENTITY %bodycolors "
� bgcolor %Color #IMPLIED
� text� %Color牋 #IMPLIED
� link� %Color牋 #IMPLIED
� vlink %Color牋 #IMPLIED
� alink %Color牋 #IMPLIED
� ">

<!ELEMENT BODY O O� (%block) -(BODY) +(INS|DEL)>
<!ATTLIST BODY
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� background� %URL牋牋牋 #IMPLIED� -- texture tile for document background --
� %bodycolors;牋牋牋牋牋牋牋牋牋牋 -- bgcolor, text, link, vlink, alink --
� onload牋牋� %Script牋� #IMPLIED� -- the document has been loaded --
� onunload牋� %Script牋� #IMPLIED� -- the document has been removed --
� >

<!ELEMENT ADDRESS - - ((%inline;) | P)*>
<!ATTLIST ADDRESS
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!ELEMENT DIV - - %block>
<!ATTLIST DIV
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� %align;牋牋牋牋牋牋牋牋牋牋牋牋� -- align, text alignment --
� >

<!-- CENTER is a shorthand for DIV with ALIGN=CENTER -->
<!ELEMENT CENTER - - %block>
<!ATTLIST CENTER
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!--================== The Anchor Element ================================-->

<!ENTITY %Shape "(rect|circle|poly|default)">
<!ENTITY %Coords "CDATA" -- comma separated list of numbers -->

<!ELEMENT A - - (%inline)* -(A)>
<!ATTLIST A
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� charset牋牋 CDATA牋牋� #IMPLIED� -- char encoding of linked resource --
� name牋牋牋� CDATA牋牋� #IMPLIED� -- named link end --
� href牋牋牋� %URL牋牋牋 #IMPLIED� -- URL for linked resource --
� target牋牋� CDATA牋牋� #IMPLIED� -- where to render resource --
� rel牋牋牋牋 CDATA牋牋� #IMPLIED� -- forward link types --
� rev牋牋牋牋 CDATA牋牋� #IMPLIED� -- reverse link types --
� accesskey牋 CDATA牋牋� #IMPLIED� -- accessibility key character --
� shape牋牋牋 %Shape牋牋 rect牋牋� -- for use with OBJECT SHAPES --
� coords牋牋� %Coords牋� #IMPLIED� -- for use with OBJECT SHAPES --
� tabindex牋� NUMBER牋牋 #IMPLIED� -- position in tabbing order --
� >

<!--================== Client-side image maps ============================-->

<!-- These can be placed in the same document or grouped in a
牋牋 separate document although this isn't yet widely supported -->

<!ELEMENT MAP - - (AREA)*>
<!ATTLIST MAP
� %coreattrs;牋牋牋牋牋牋牋牋牋牋� -- id, class, style, title --
� name牋牋牋� CDATA牋牋 #IMPLIED
� >

<!ELEMENT AREA - O EMPTY>
<!ATTLIST AREA
� shape牋牋牋 %Shape牋� rect牋牋� -- controls interpretation of coords --
� coords牋牋� %Coords牋 #IMPLIED� -- comma separated list of values --
� href牋牋牋� %URL牋牋� #IMPLIED� -- this region acts as hypertext link --
� target牋牋� CDATA牋牋 #IMPLIED� -- where to render linked resource --�
� nohref牋牋� (nohref)� #IMPLIED� -- this region has no action --
� alt牋牋牋牋 CDATA牋牋 #REQUIRED -- description for text only browsers --
� tabindex牋� NUMBER牋� #IMPLIED� -- position in tabbing order --
� >

<!--================== The LINK Element ==================================-->

<!--
� Relationship values can be used in principle:

牋 a) for document specific toolbars/menus when used
牋牋� with the LINK element in document head e.g.
牋牋牋� start, contents, previous, next, index, end, help
牋 b) to link to a separate style sheet (rel=stylesheet)
牋 c) to make a link to a script (rel=script)
牋 d) by stylesheets to control how collections of
牋牋� html nodes are rendered into printed documents
牋 e) to make a link to a printable version of this document
牋牋� e.g. a postscript or pdf version (rel=print)
-->

<!ELEMENT LINK - O EMPTY>
<!ATTLIST LINK
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� href牋牋牋� %URL牋牋牋 #IMPLIED� -- URL for linked resource --
� rel牋牋牋牋 CDATA牋牋� #IMPLIED� -- forward link types --
� rev牋牋牋牋 CDATA牋牋� #IMPLIED� -- reverse link types --
� type牋� %ContentType� #IMPLIED� -- advisory Internet content type --
� media牋牋牋 CDATA牋牋� #IMPLIED� -- for rendering on these media --
� target牋牋� CDATA牋牋� #IMPLIED� -- where to render linked resource --
� >

<!--=================== Images ===========================================-->

<!ENTITY %Length "CDATA" -- nn for pixels or nn% for percentage length -->
<!ENTITY %Pixels "CDATA" -- integer representing length in pixels -->

<!ENTITY %IAlign "(top|middle|bottom|left|right)"� -- center? -->

<!-- To avoid problems with text-only UAs you need to provide
牋牋 a description with ALT, and avoid server-side image maps -->
<!ELEMENT IMG - O EMPTY牋牋� --� Embedded image -->
<!ATTLIST IMG
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� src牋牋牋牋 %URL牋牋牋 #REQUIRED -- URL of image to embed --
� alt牋牋牋牋 CDATA牋牋� #IMPLIED� -- description for text only browsers --
� align牋牋牋 %IAlign牋� #IMPLIED� -- vertical or horizontal alignment --
� height牋牋� %Pixels牋� #IMPLIED� -- suggested height in pixels --
� width牋牋牋 %Pixels牋� #IMPLIED� -- suggested width in pixels --
� border牋牋� %Pixels牋� #IMPLIED� -- suggested link border width --
� hspace牋牋� %Pixels牋� #IMPLIED� -- suggested horizontal gutter --
� vspace牋牋� %Pixels牋� #IMPLIED� -- suggested vertical gutter --
� usemap牋牋� %URL牋牋牋 #IMPLIED� -- use client-side image map --
� ismap牋牋牋 (ismap)牋� #IMPLIED� -- use server-side image map --
� >

<!-- USEMAP points to a MAP element which may be in this document
� or an external document, although the latter is not widely supported -->

<!--==================== OBJECT tag ======================================-->
<!-- PARAM elements should precede other content. SGML mixed content model
� technicality precludes specifying this formally ...
-->

<!ENTITY %OAlign "(texttop|middle|textmiddle|baseline|
牋牋牋牋牋牋牋牋牋牋牋牋牋牋 textbottom|left|center|right)">

<!ELEMENT OBJECT - - (PARAM | %block)*>
<!ATTLIST OBJECT
� %attrs牋牋牋牋牋牋牋牋牋牋牋牋牋 -- %coreattrs, %i18n, %events --
� declare牋牋 (declare)� #IMPLIED� -- declare but don't instantiate flag --
� classid牋牋 %URL牋牋牋 #IMPLIED� -- identifies an implementation --
� codebase牋� %URL牋牋牋 #IMPLIED� -- some systems need an additional URL --
� data牋牋牋� %URL牋牋牋 #IMPLIED� -- reference to object's data --
� type牋牋 %ContentType #IMPLIED� -- Internet content type for data --
� codetype %ContentType #IMPLIED� -- Internet content type for code --
� standby牋牋 CDATA牋牋� #IMPLIED� -- message to show while loading --
� align牋牋牋 %OAlign牋� #IMPLIED� -- positioning inside document --
� height牋牋� %Length牋� #IMPLIED� -- suggested height --
� width牋牋牋 %Length牋� #IMPLIED� -- suggested width --
� border牋牋� %Length牋� #IMPLIED� -- suggested link border width --
� hspace牋牋� %Length牋� #IMPLIED� -- suggested horizontal gutter --
� vspace牋牋� %Length牋� #IMPLIED� -- suggested vertical gutter --
� usemap牋牋� %URL牋牋牋 #IMPLIED� -- reference to image map --
� shapes牋牋� (shapes)牋 #IMPLIED� -- object has shaped hypertext links --
� name牋牋牋� %URL牋牋牋 #IMPLIED� -- submit as part of form --
� tabindex牋� NUMBER牋牋 #IMPLIED� -- position in tabbing order --
� >

<!ELEMENT PARAM - O EMPTY牋牋牋 -- named property value -->
<!ATTLIST PARAM
� name牋牋牋� CDATA牋牋� #REQUIRED -- property name --
� value牋牋牋 CDATA牋牋� #IMPLIED� -- property value --
� valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
� type牋牋牋� CDATA牋牋� #IMPLIED� -- Internet media type --
� >

<!--=================== Java APPLET tag ==================================-->
<!--
� One of code or object attributes must be present.
� Place PARAM elements before other content.
-->
<!ELEMENT APPLET - - (PARAM | %inline)*>
<!ATTLIST APPLET
� codebase牋� %URL牋牋牋 #IMPLIED牋 -- optional base URL for applet --
� archive牋牋 CDATA牋牋� #IMPLIED牋 -- comma separated archive list --
� code牋牋牋� CDATA牋牋� #IMPLIED牋 -- applet class file --
� object牋牋� CDATA牋牋� #IMPLIED牋 -- serialized applet file --
� alt牋牋牋牋 CDATA牋牋� #IMPLIED牋 -- description for text only browsers --
� name牋牋牋� CDATA牋牋� #IMPLIED牋 -- allows applets to find each other --
� width牋牋牋 %Pixels牋� #REQUIRED� -- suggested width in pixels --
� height牋牋� %Pixels牋� #REQUIRED� -- suggested height in pixels --
� align牋牋牋 %IAlign牋� #IMPLIED牋 -- vertical or horizontal alignment --
� hspace牋牋� %Pixels牋� #IMPLIED牋 -- suggested horizontal gutter --
� vspace牋牋� %Pixels牋� #IMPLIED牋 -- suggested vertical gutter --
� >

<!--=================== Horizontal Rule ==================================-->

<!ELEMENT HR - O EMPTY>
<!ATTLIST HR
� %coreattrs;牋牋牋牋牋牋牋牋牋牋� -- id, class, style, title --
� %events;
� align (left|right|center) #IMPLIED
� noshade牋牋 (noshade)� #IMPLIED
� size牋牋牋� %Pixels牋� #IMPLIED
� width牋牋牋 %Length牋� #IMPLIED
� >

<!--=================== Paragraphs =======================================-->

<!ELEMENT P - O (%inline)*>
<!ATTLIST P
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� %align;牋牋牋牋牋牋牋牋牋牋牋牋� -- align, text alignment --
� >

<!--=================== Headings =========================================-->

<!--
� There are six levels of headings from H1 (the most important)
� to H6 (the least important).
-->

<!ELEMENT (%heading)� - -� (%inline;)*>
<!ATTLIST (%heading)
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� %align;牋牋牋牋牋牋牋牋牋牋牋牋� -- align, text alignment --
� >

<!--=================== Preformatted Text ================================-->

<!-- excludes markup for images and changes in font size -->
<!ENTITY %pre.exclusion "IMG|BIG|SMALL|SUB|SUP|FONT">

<!ELEMENT PRE - - (%inline)* -(%pre.exclusion)>
<!ATTLIST PRE
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� width牋牋牋 NUMBER牋牋 #IMPLIED
� >

<!--===================== Inline Quotes ==================================-->

<!ELEMENT Q - - (%inline)*>
<!ATTLIST Q
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� cite牋牋牋� %URL牋牋牋 #IMPLIED� -- URL for source document or msg --
� >

<!--=================== Block-like Quotes ================================-->

<!ELEMENT BLOCKQUOTE - - %block>
<!ATTLIST BLOCKQUOTE
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� cite牋牋牋� %URL牋牋牋 #IMPLIED� -- URL for source document or msg --
� >

<!--=================== Lists ============================================-->

<!-- definition lists - DT for term, DD for its definition -->

<!ELEMENT DL - -� (DT|DD)+>
<!ATTLIST DL
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� compact牋牋 (compact)� #IMPLIED� -- reduced interitem spacing --
� >

<!ELEMENT DT - O� (%inline)*>
<!ELEMENT DD - O� %block>
<!ATTLIST (DT|DD)
� %attrs牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!-- Ordered lists (OL) Numbering style

牋� 1牋 arablic numbers牋牋 1, 2, 3, ...
牋� a牋 lower alpha牋牋牋牋 a, b, c, ...
牋� A牋 upper alpha牋牋牋牋 A, B, C, ...
牋� i牋 lower roman牋牋牋牋 i, ii, iii, ...
牋� I牋 upper roman牋牋牋牋 I, II, III, ...

牋� The style is applied to the sequence number which by default
牋� is reset to 1 for the first list item in an ordered list.

牋� This can't be expressed directly in SGML due to case folding.
-->

<!ENTITY %OLStyle "CDATA"牋牋� -- constrained to: [1|a|A|i|I] -->

<!ELEMENT OL - -� (LI)+>
<!ATTLIST OL -- ordered lists --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� type牋牋牋� %OLStyle牋 #IMPLIED� -- numbering style --
� compact牋牋 (compact)� #IMPLIED� -- reduced interitem spacing --
� start牋牋牋 NUMBER牋牋 #IMPLIED� -- starting sequence number --
� >

<!-- Unordered Lists (UL) bullet styles -->
<!ENTITY %ULStyle "disc|square|circle">

<!ELEMENT UL - -� (LI)+>
<!ATTLIST UL牋牋牋牋牋牋牋牋牋� -- unordered lists --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� type牋牋牋� (%ULStyle) #IMPLIED� -- bullet style --
� compact牋牋 (compact)� #IMPLIED� -- reduced interitem spacing --
� >

<!ELEMENT (DIR|MENU) - -� (LI)+ -(%blocklevel)>
<!ATTLIST DIR
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� compact牋牋 (compact)� #IMPLIED
� >
<!ATTLIST MENU
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� compact牋牋 (compact)� #IMPLIED
� >

<!-- <DIR>牋牋牋牋牋牋� Directory list牋牋牋牋牋牋牋牋� -->
<!-- <DIR COMPACT>牋牋� Compact list style牋牋牋牋牋牋� -->
<!-- <MENU>牋牋牋牋牋牋 Menu list牋牋牋牋牋牋牋牋牋牋牋 -->
<!-- <MENU COMPACT>牋牋 Compact list style牋牋牋牋牋牋� -->

<!-- The type attribute can be used to change the bullet style
牋牋 in unordered lists and the numbering style in ordered lists -->

<!ENTITY %LIStyle "CDATA" -- constrained to: "(%ULStyle|%OLStyle)" -->

<!ELEMENT LI - O %block -- list item -->
<!ATTLIST LI
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� type牋牋牋� %LIStyle牋 #IMPLIED� -- list item style --
� value牋牋牋 NUMBER牋牋 #IMPLIED� -- reset sequence number --
� >


<!--================ Forms ===============================================-->
<!ELEMENT FORM - - %block -(FORM)>
<!ATTLIST FORM
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� action牋牋� %URL牋牋牋 #REQUIRED -- server-side form handler --
� method牋牋� (GET|POST) GET牋牋牋 -- HTTP method used to submit the form --
� enctype牋牋 %ContentType; "application/x-www-form-urlencoded"
� onsubmit牋� %Script牋� #IMPLIED� -- the form was submitted --
� onreset牋牋 %Script牋� #IMPLIED� -- the form was reset --
� target牋牋� CDATA牋牋� #IMPLIED� -- where to render result --
� accept-charset CDATA牋 #IMPLIED� -- list of supported charsets --
� >

<!-- Each label must not contain more than ONE field -->
<!ELEMENT LABEL - - (%inline)* -(LABEL) -- field label text -->
<!ATTLIST LABEL
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� for牋牋牋牋 IDREF牋牋� #IMPLIED� -- matches field ID value --
� disabled牋� (disabled) #IMPLIED� -- control is unavailable in this context --
� accesskey牋 CDATA牋牋� #IMPLIED� -- accessibility key character --
� onfocus牋牋 %Script牋� #IMPLIED� -- the element got the focus --
� onblur牋牋� %Script牋� #IMPLIED� -- the element lost the focus --
� >

<!ENTITY %InputType
� "(TEXT | PASSWORD | CHECKBOX |
牋� RADIO | SUBMIT | RESET |
牋� FILE | HIDDEN | IMAGE | BUTTON)"
牋 >

<!-- HSPACE and VSPACE missing due to lack of widespread support -->
<!ELEMENT INPUT - O EMPTY>
<!ATTLIST INPUT
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� type牋牋� %InputType牋 TEXT牋牋� -- what kind of widget is needed --
� name牋牋牋� CDATA牋牋� #IMPLIED� -- required for all but submit & reset --
� value牋牋牋 CDATA牋牋� #IMPLIED� -- required for radio and checkboxes --
� checked牋 (checked)牋� #IMPLIED� -- for radio buttons and check boxes --
� disabled� (disabled)牋 #IMPLIED� -- control is unavailable in this context --
� readonly� (readonly)牋 #IMPLIED� -- for text and passwd --
� size牋牋牋� CDATA牋牋� #IMPLIED� -- specific to each type of field --
� maxlength牋 NUMBER牋牋 #IMPLIED� -- max chars for text fields --
� src牋牋牋牋 %URL牋牋牋 #IMPLIED� -- for fields with images --
� alt牋牋牋牋 CDATA牋牋� #IMPLIED� -- description for text only browsers --
� usemap牋牋� %URL牋牋牋 #IMPLIED� -- use client-side image map --
� align牋牋牋 %IAlign牋� #IMPLIED� -- vertical or horizontal alignment --
� tabindex牋� NUMBER牋牋 #IMPLIED� -- position in tabbing order --
� onfocus牋牋 %Script牋� #IMPLIED� -- the element got the focus --
� onblur牋牋� %Script牋� #IMPLIED� -- the element lost the focus --
� onselect牋� %Script牋� #IMPLIED� -- some text was selected --
� onchange牋� %Script牋� #IMPLIED� -- the element value was changed --
� accept牋牋� CDATA牋牋� #IMPLIED� -- list of MIME types for file upload --
� >

<!ELEMENT SELECT - - (OPTION+)>
<!ATTLIST SELECT
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� name牋牋牋� CDATA牋牋� #REQUIRED -- field name --
� size牋牋牋� NUMBER牋牋 #IMPLIED� -- rows visible --
� multiple� (multiple)牋 #IMPLIED� -- default is single selection --
� disabled� (disabled)牋 #IMPLIED� -- control is unavailable in this context --
� tabindex牋� NUMBER牋牋 #IMPLIED� -- position in tabbing order --
� onfocus牋牋 %Script牋� #IMPLIED� -- the element got the focus --
� onblur牋牋� %Script牋� #IMPLIED� -- the element lost the focus --
� onselect牋� %Script牋� #IMPLIED� -- some text was selected --
� onchange牋� %Script牋� #IMPLIED� -- the element value was changed --
� >

<!ELEMENT OPTION - O (#PCDATA)*>
<!ATTLIST OPTION
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� selected� (selected)牋 #IMPLIED
� disabled� (disabled)牋 #IMPLIED� -- control is unavailable in this context --
� value牋牋牋 CDATA牋牋� #IMPLIED� -- defaults to element content --
� >

<!-- Multi-line text input field. -->
<!ELEMENT TEXTAREA - - (#PCDATA)*>
<!ATTLIST TEXTAREA
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� name牋牋牋� CDATA牋牋� #REQUIRED
� rows牋牋牋� NUMBER牋牋 #REQUIRED
� cols牋牋牋� NUMBER牋牋 #REQUIRED
� disabled� (disabled)牋 #IMPLIED� -- control is unavailable in this context --
� readonly� (readonly)牋 #IMPLIED
� tabindex牋� NUMBER牋牋 #IMPLIED� -- position in tabbing order --
� onfocus牋牋 %Script牋� #IMPLIED� -- the element got the focus --
� onblur牋牋� %Script牋� #IMPLIED� -- the element lost the focus --
� onselect牋� %Script牋� #IMPLIED� -- some text was selected --
� onchange牋� %Script牋� #IMPLIED� -- the element value was changed --
� >

<!--
� #PCDATA is to solve the mixed content problem,
� per specification only whitespace is allowed there!
�-->
<!ELEMENT FIELDSET - - (#PCDATA,LEGEND,%block)>
<!ATTLIST FIELDSET
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� >

<!ELEMENT LEGEND - - (%inline;)+>
<!ENTITY %LAlign "(top|bottom|left|right)">

<!ATTLIST LEGEND牋牋牋牋牋� -- fieldset legend --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� align牋牋牋 %LAlign;牋 #IMPLIED� -- relative to fieldset --
� accesskey牋 CDATA牋牋� #IMPLIED� -- accessibility key character --
� >

<!ELEMENT BUTTON - -
牋牋 (%inline | %blocklevel)* -(A | %formctrl | FORM | ISINDEX | FIELDSET)>
<!ATTLIST BUTTON
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� name牋牋牋� CDATA牋牋� #IMPLIED� -- for scripting/forms as submit button --
� value牋牋牋 CDATA牋牋� #IMPLIED� -- gets passed to server when submitted --
� type牋� (submit|reset) #IMPLIED� -- for use as form submit/reset button --
� disabled牋 (disabled)� #IMPLIED� -- control is unavailable in this context --
� tabindex牋� NUMBER牋牋 #IMPLIED� -- position in tabbing order --
� onfocus牋牋 %Script牋� #IMPLIED� -- the element got the focus --
� onblur牋牋� %Script牋� #IMPLIED� -- the element lost the focus --
� >


<!--======================= Tables =======================================-->

<!-- IETF HTML table standard, see [RFC1942] -->

<!--
燭he BORDER attribute sets the thickness of the frame around the
爐able. The default units are screen pixels.

燭he FRAME attribute specifies which parts of the frame around
爐he table should be rendered. The values are not the same as
燙ALS to avoid a name clash with the VALIGN attribute.

燭he value "border" is included for backwards compatibility with
<TABLE BORDER> which yields frame=border and border=implied
燜or <TABLE BORDER=1> you get border=1 and frame=implied. In this
燾ase, it is appropriate to treat this as frame=border for backwards
燾ompatibility with deployed browsers.
-->
<!ENTITY %TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">

<!--
燭he RULES attribute defines which rules to draw between cells:

營f RULES is absent then assume:
牋牋 "none" if BORDER is absent or BORDER=0 otherwise "all"
-->

<!ENTITY %TRules "(none | groups | rows | cols | all)">
牋
<!-- horizontal placement of table relative to document -->
<!ENTITY %TAlign "(left|center|right)">

<!-- horizontal alignment attributes for cell contents -->
<!ENTITY %cellhalign
� "align (left|center|right|justify|char) #IMPLIED
牋 char牋牋牋 CDATA牋牋� #IMPLIED� -- alignment char, e.g. char=':' --
牋 charoff牋� CDATA牋牋� #IMPLIED� -- offset for alignment char --"
� >

<!-- vertical alignment attributes for cell contents -->
<!ENTITY %cellvalign
� "valign (top|middle|bottom|baseline) #IMPLIED"
� >

<!ELEMENT TABLE - - (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
<!ELEMENT CAPTION - - (%inline;)+>
<!ELEMENT THEAD - O (TR+)>
<!ELEMENT TFOOT - O (TR+)>
<!ELEMENT TBODY O O (TR+)>
<!ELEMENT COLGROUP - O (col*)>

<!ELEMENT COL - O EMPTY>
<!ELEMENT TR - O (TH|TD)+>
<!ELEMENT (TH|TD) - O %block>

<!ATTLIST TABLE牋牋牋牋牋牋牋牋 -- table element --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� align牋牋牋 %TAlign;牋 #IMPLIED� -- table position relative to window --
� bgcolor牋牋 %Color牋牋 #IMPLIED� -- background color for cells --
� width牋牋牋 CDATA牋牋� #IMPLIED� -- table width relative to window --
� cols牋牋牋� NUMBER牋牋 #IMPLIED� -- used for immediate display mode --
� border牋牋� CDATA牋牋� #IMPLIED� -- controls frame width around table --
� frame牋牋牋 %TFrame;牋 #IMPLIED� -- which parts of table frame to include --
� rules牋牋牋 %TRules;牋 #IMPLIED� -- rulings between rows and cols --
� cellspacing CDATA牋牋� #IMPLIED� -- spacing between cells --
� cellpadding CDATA牋牋� #IMPLIED� -- spacing within cells --
� >

<!ENTITY %CAlign "(top|bottom|left|right)">

<!ATTLIST CAPTION牋牋牋牋牋牋牋 -- table caption --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� align牋牋牋 %CAlign;牋 #IMPLIED� -- relative to table --
� >

<!--
COLGROUP groups a set of COL elements. It allows you to group
several columns together.
-->
<!ATTLIST COLGROUP
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� span牋牋牋� NUMBER牋牋 1牋牋牋牋 -- default number of columns in group --
� width牋牋牋 CDATA牋牋� #IMPLIED� -- default width for enclosed COLs --
� %cellhalign;牋牋牋牋牋牋牋牋牋牋 -- horizontal alignment in cells --
� %cellvalign;牋牋牋牋牋牋牋牋牋牋 -- vertical alignment in cells --
� >

<!--
燙OL elements define the alignment properties for cells in a given
燾olumn or spanned columns. The WIDTH attribute specifies the
爓idth of the columns, e.g.

牋牋 width=64牋牋牋� width in screen pixels
牋牋 width=0.5*牋牋� relative width of 0.5
-->
<!ATTLIST COL牋牋牋牋牋牋牋牋牋 -- column groups and properties --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� span牋牋牋� NUMBER牋牋 1牋牋牋牋 -- number of columns spanned by group --
� width牋牋牋 CDATA牋牋� #IMPLIED� -- column width specification --
� %cellhalign;牋牋牋牋牋牋牋牋牋牋 -- horizontal alignment in cells --
� %cellvalign;牋牋牋牋牋牋牋牋牋牋 -- vertical alignment in cells --
� >

<!--
牋� Use THEAD to duplicate headers when breaking table
牋� across page boundaries, or for static headers when
牋� TBODY sections are rendered in scrolling panel.

牋� Use TFOOT to duplicate footers when breaking table
牋� across page boundaries, or for static footers when
牋� TBODY sections are rendered in scrolling panel.

牋� Use multiple TBODY sections when rules are needed
牋� between groups of table rows.
-->
<!ATTLIST (THEAD|TBODY|TFOOT)牋 -- table section --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� %cellhalign;牋牋牋牋牋牋牋牋牋牋 -- horizontal alignment in cells --
� %cellvalign;牋牋牋牋牋牋牋牋牋牋 -- vertical alignment in cells --
� >

<!ATTLIST TR牋牋牋牋牋牋牋牋牋� -- table row --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� %cellhalign;牋牋牋牋牋牋牋牋牋牋 -- horizontal alignment in cells --
� %cellvalign;牋牋牋牋牋牋牋牋牋牋 -- vertical alignment in cells --
� bgcolor牋牋 %Color牋牋 #IMPLIED� -- background color for row --
� >

<!ATTLIST (TH|TD)牋牋牋牋牋牋牋 -- header or data cell --
� %attrs;牋牋牋牋牋牋牋牋牋牋牋牋� -- %coreattrs, %i18n, %events --
� axis牋牋牋� CDATA牋牋� #IMPLIED� -- defaults to cell content --
� axes牋牋牋� CDATA牋牋� #IMPLIED� -- list of axis names --
� nowrap牋牋� (nowrap)牋 #IMPLIED� -- suppress word wrap --
� bgcolor牋牋 %Color牋牋 #IMPLIED� -- cell background color --
� rowspan牋牋 NUMBER牋牋 1牋牋牋牋 -- number of rows spanned by cell --
� colspan牋牋 NUMBER牋牋 1牋牋牋牋 -- number of cols spanned by cell --
� %cellhalign;牋牋牋牋牋牋牋牋牋牋 -- horizontal alignment in cells --
� %cellvalign;牋牋牋牋牋牋牋牋牋牋 -- vertical alignment in cells --
� >

<!--================== Document Frames ===================================-->

<!ELEMENT FRAMESET - - ((FRAMESET|FRAME)+ & NOFRAMES?)>
<!ATTLIST FRAMESET
� -- absolute pixel values, percentages or relative scales. --
� rows牋牋牋� CDATA牋牋� #IMPLIED� -- if not given, default is 1 row --
� cols牋牋牋� CDATA牋牋� #IMPLIED� -- if not given, default is 1 column --
� onload牋牋� %Script牋� #IMPLIED� -- all the frames have been loaded� --�
� onunload牋� %Script牋� #IMPLIED� -- all the frames have been removed --�
� >

<!-- reserved frame names start with "_" otherwise starts with letter -->
<!ELEMENT FRAME - O EMPTY>
<!ATTLIST FRAME
� name牋牋牋� CDATA牋牋� #IMPLIED� -- name of frame for targetting --
� src牋牋牋牋 %URL牋牋牋 #IMPLIED� -- source of frame content --
� frameborder (1|0)牋牋� 1牋牋牋牋 -- request frame borders? --
� marginwidth %Pixels牋� #IMPLIED� -- margin widths in pixels --
� marginheight %Pixels牋 #IMPLIED� -- margin height in pixels --
� noresize牋� (noresize) #IMPLIED� -- allow users to resize frames? --
� scrolling (yes|no|auto) auto牋牋 -- scrollbar or none --
� >

<!ELEMENT IFRAME - - %block>
<!ATTLIST IFRAME
� name牋牋牋� CDATA牋牋� #IMPLIED� -- name of frame for targetting --
� src牋牋牋牋 %URL牋牋牋 #IMPLIED� -- source of frame content --
� frameborder (1|0)牋牋� 1牋牋牋牋 -- request frame borders? --
� marginwidth %Pixels牋� #IMPLIED� -- margin widths in pixels --
� marginheight %Pixels牋 #IMPLIED� -- margin height in pixels --
� scrolling (yes|no|auto) auto牋牋 -- scrollbar or none --
� align牋牋牋 %IAlign牋� #IMPLIED� -- vertical or horizontal alignment --
� height牋牋� %Length牋� #IMPLIED� -- suggested height --
� width牋牋牋 %Length牋� #IMPLIED� -- suggested width --
� >

<!--
燭he following is quite complicated because of the mixed
燾ontent model. However it's actually only meant to contain
爀ither BODY or %block.
�-->
<!ELEMENT NOFRAMES - -
�(#PCDATA,((BODY,#PCDATA)|
牋牋牋牋牋 (((%blocklevel)|%font|%phrase|%special|%formctrl),%block)))>

<!--================ Document Head =======================================-->
<!-- %head.misc defined earlier on as "SCRIPT | STYLE | META | LINK" -->
<!ENTITY %head.content "TITLE & ISINDEX? & BASE?">

<!ELEMENT HEAD O O� (%head.content) +(%head.misc)>
<!ATTLIST HEAD
� %i18n;牋牋牋牋牋牋牋牋牋牋牋牋牋 -- lang, dir --
� profile牋牋 %URL牋牋牋 #IMPLIED� -- named dictionary of meta info --
� >

<!ELEMENT TITLE - -� (#PCDATA)* -(%head.misc)
牋� -- The TITLE element is not considered part of the flow of text.
牋牋牋 It should be displayed, for example as the page header or
牋牋牋 window title. Exactly one title is required per document.
牋� -->
<!ATTLIST TITLE %i18n>

<!ELEMENT ISINDEX - O EMPTY>
<!ATTLIST ISINDEX
� %coreattrs;牋牋牋牋牋牋牋牋牋牋� -- id, class, style, title --
� %i18n;牋牋牋牋牋牋牋牋牋牋牋牋牋 -- lang, dir --
� prompt牋牋� CDATA牋牋� #IMPLIED� -- prompt message -->

<!ELEMENT BASE - O EMPTY>
<!ATTLIST BASE
� href牋牋牋� %URL牋牋牋 #REQUIRED
� target牋牋� CDATA牋牋� #IMPLIED� -- where to render linked resource --
� >

<!ELEMENT META - O EMPTY牋牋牋� -- Generic Metainformation -->
<!ATTLIST META
� %i18n;牋牋牋牋牋牋牋牋牋牋牋牋牋 -- lang, dir, for use with content string --
� http-equiv� NAME牋牋牋 #IMPLIED� -- HTTP response header name� --
� name牋牋牋� NAME牋牋牋 #IMPLIED� -- metainformation name --
� content牋牋 CDATA牋牋� #REQUIRED -- associated information --
� scheme牋牋� CDATA牋牋� #IMPLIED� -- select form of content --
� >

<!ELEMENT STYLE - - CDATA牋牋� -- style info -->
<!ATTLIST STYLE
� %i18n;牋牋牋牋牋牋牋牋牋牋牋牋牋 -- lang, dir, for use with title --
� type牋牋牋� CDATA牋牋� #REQUIRED -- Internet content type
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋� for style language --
� media牋牋牋 CDATA牋牋� #IMPLIED� -- designed for use with these media --
� title牋牋牋 CDATA牋牋� #IMPLIED� -- advisory title --
� >

牋牋
<!ELEMENT SCRIPT - - CDATA牋牋� -- script statements -->
<!ATTLIST SCRIPT
� type牋牋牋� CDATA牋牋� #IMPLIED� -- Internet content type for
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋� script language --
� language牋� CDATA牋牋� #IMPLIED� -- predefined script language name --
� src牋牋牋牋 %URL牋牋牋 #IMPLIED� -- URL for an external script --
� >

<!ELEMENT NOSCRIPT - - (%block)>

<!--================ Document Structure ==================================-->
<!ENTITY %version "version CDATA #FIXED '%HTML.Version;'">

<!ENTITY %html.content "HEAD, (FRAMESET|BODY)">

<!ELEMENT HTML O O (%html.content)>
<!ATTLIST HTML
� %version;
� %i18n;牋牋牋牋牋牋牋牋牋牋牋牋牋 -- lang, dir --
� >