Appendix D. The HTML 4.01 DTD


The HTML 4.01 standard is formally defined as three Standard Generalized Markup Language (SGML) Document Type Definitions (DTDs): the Strict DTD, the Transitional DTD, and the Frameset DTD. The Strict DTD defines only those elements that are not deprecated in the 4.0 standard. Ideally, everyone would create HTML documents that conform to the Strict DTD. The Transitional DTD includes all those deprecated elements and more accurately reflects the HTML in use today, with many older elements still in common use. The Frameset DTD is identical to the Transitional DTD, with the exception that the document <body> is replaced by the <frameset> tag.

Since the Transitional DTD provides the broadest coverage of all HTML elements currently in use, it is the DTD upon which this book is based and the one we reproduce here. Note that we have reprinted this DTD verbatim and have not attempted to add extensions to it. Where our description and the DTD deviate, assume the DTD is correct:

 <!--     This is the HTML 4.01 Transitional DTD, which includes     presentation attributes and elements that W3C expects to phase out     as support for style sheets matures. Authors should use the Strict     DTD when possible, but may use the Transitional DTD when support     for presentation attributes and elements is required.     HTML 4 includes mechanisms for style sheets, scripting,     embedding objects, improved support for right to left and mixed     direction text, and enhancements to forms for improved     accessibility for people with disabilities.           Draft: $Date: 2006/10/25 17:08:45 $           Authors:               Dave Raggett <dsr@w3.org>               Arnaud Le Hors <lehors@w3.org>               Ian Jacobs <ij@w3.org>     Further information about HTML 4.01 is available at:         http://www.w3.org/TR/1999/REC-html401-19991224     The HTML 4.01 specification includes additional     syntactic constraints that cannot be expressed within     the DTDs. --> <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.01 Transitional//EN"   -- Typical usage:     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"             "http://www.w3.org/TR/html4/loose.dtd">     <html>     <head>     ...     </head>     <body>     ...     </body>     </html>     The URI used as a system identifier with the public identifier allows     the user agent to download the DTD and entity sets as needed.     The FPI for the Strict HTML 4.01 DTD is:         "-//W3C//DTD HTML 4.01//EN"     This version of the strict DTD is:         http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd     Authors should use the Strict DTD unless they need the     presentation control for user agents that don't (adequately)     support style sheets.     If you are writing a document that includes frames, use     the following FPI:         "-//W3C//DTD HTML 4.01 Frameset//EN"     This version of the frameset DTD is:         http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd     Use the following (relative) URIs to refer to     the DTDs and entity definitions of this specification:     "strict.dtd"     "loose.dtd"     "frameset.dtd"     "HTMLlat1.ent"     "HTMLsymbol.ent"     "HTMLspecial.ent" --> <!--================== Imported Names ====================================--> <!-- Feature Switch for frameset documents --> <!ENTITY % HTML.Frameset "IGNORE"> <!ENTITY % ContentType "CDATA"     -- media type, as per [RFC2045]     --> <!ENTITY % ContentTypes "CDATA"     -- comma-separated list of media types, as per [RFC2045]     --> <!ENTITY % Charset "CDATA"     -- a character encoding, as per [RFC2045]     --> <!ENTITY % Charsets "CDATA"     -- a space-separated list of character encodings, as per [RFC2045]     --> <!ENTITY % LanguageCode "NAME"     -- a language code, as per [RFC1766]     --> <!ENTITY % Character "CDATA"     -- a single character from [ISO10646]     --> <!ENTITY % LinkTypes "CDATA"     -- space-separated list of link types     --> <!ENTITY % MediaDesc "CDATA"     -- single or comma-separated list of media descriptors     --> <!ENTITY % URI "CDATA"     -- a Uniform Resource Identifier,        see [URI]     --> <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format --> <!ENTITY % Script "CDATA" -- script expression --> <!ENTITY % StyleSheet "CDATA" -- style sheet data --> <!ENTITY % FrameTarget "CDATA" -- render in this frame --> <!ENTITY % Text "CDATA"> <!-- Parameter Entities --> <!ENTITY % head.misc "SCRIPTSTYLEMETALINKOBJECT" -- repeatable head elements --> <!ENTITY % heading "H1H2H3H4H5H6"> <!ENTITY % list "UL  OL   DIR  MENU"> <!ENTITY % preformatted "PRE"> <!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  -- document background color --   text        %Color;        #IMPLIED  -- document text color --   link        %Color;        #IMPLIED  -- color of links --   vlink       %Color;        #IMPLIED  -- color of visited links --   alink       %Color;        #IMPLIED  -- color of selected links --   "> <!--================ Character mnemonic entities =========================--> <!ENTITY % HTMLlat1 PUBLIC    "-//W3C//ENTITIES Latin1//EN//HTML"    "HTMLlat1.ent"> %HTMLlat1; <!ENTITY % HTMLsymbol PUBLIC    "-//W3C//ENTITIES Symbols//EN//HTML"    "HTMLsymbol.ent"> %HTMLsymbol; <!ENTITY % HTMLspecial PUBLIC    "-//W3C//ENTITIES Special//EN//HTML"    "HTMLspecial.ent"> %HTMLspecial; <!--=================== Generic Attributes ===============================--> <!ENTITY % coreattrs  "id          ID             #IMPLIED  -- document-wide unique id --   class       CDATA          #IMPLIED  -- space-separated list of classes --   style       %StyleSheet;   #IMPLIED  -- associated style info --   title       %Text;         #IMPLIED  -- advisory title --"   > <!ENTITY % i18n  "lang        %LanguageCode; #IMPLIED  -- language code --   dir         (ltrrtl)      #IMPLIED  -- direction for weak/neutral text --"   > <!ENTITY % events  "onclick     %Script;       #IMPLIED  -- a pointer button was clicked --   ondblclick  %Script;       #IMPLIED  -- a pointer button was double clicked--   onmousedown %Script;       #IMPLIED  -- a pointer button was pressed down --   onmouseup   %Script;       #IMPLIED  -- a pointer button was released --   onmouseover %Script;       #IMPLIED  -- a pointer was moved onto --   onmousemove %Script;       #IMPLIED  -- a pointer was moved within --   onmouseout  %Script;       #IMPLIED  -- a pointer 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 --"   > <!-- Reserved Feature Switch --> <!ENTITY % HTML.Reserved "IGNORE"> <!-- The following attributes are reserved for possible future use --> <![ %HTML.Reserved; [ <!ENTITY % reserved  "datasrc     %URI;          #IMPLIED  -- a single or tabular Data Source --   datafld     CDATA          #IMPLIED  -- the property or column name --   dataformatas (plaintexthtml) plaintext -- text or html --"   > ]]> <!ENTITY % reserved ""> <!ENTITY % attrs "%coreattrs; %i18n; %events;"> <!ENTITY % align "align (leftcenterrightjustify)  #IMPLIED"                    -- default is left for ltr paragraphs, right for rtl --   > <!--=================== Text Markup ======================================--> <!ENTITY % fontstyle  "TT  I  B  U  S  STRIKE  BIG  SMALL"> <!ENTITY % phrase "EM  STRONG  DFN  CODE                     SAMP  KBD  VAR  CITE  ABBR  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  %fontstyle;  %phrase;  %special;  %formctrl;"> <!ELEMENT (%fontstyle;%phrase;) - - (%inline;)*> <!ATTLIST (%fontstyle;%phrase;)   %attrs;                              -- %coreattrs, %i18n, %events --   > <!ELEMENT (SUBSUP) - - (%inline;)*    -- subscript, superscript --> <!ATTLIST (SUBSUP)   %attrs;                              -- %coreattrs, %i18n, %events --   > <!ELEMENT SPAN - - (%inline;)*         -- generic language/style container --> <!ATTLIST SPAN   %attrs;                              -- %coreattrs, %i18n, %events --   %reserved;                           -- reserved for possible future use --   > <!ELEMENT BDO - - (%inline;)*          -- I18N BiDi over-ride --> <!ATTLIST BDO   %coreattrs;                          -- id, class, style, title --   lang        %LanguageCode; #IMPLIED  -- language code --   dir         (ltrrtl)      #REQUIRED -- directionality --   > <!ELEMENT BASEFONT - O EMPTY           -- base font size --> <!ATTLIST BASEFONT   id          ID             #IMPLIED  -- document-wide unique id --   size        CDATA          #REQUIRED -- base font size for FONT elements --   color       %Color;        #IMPLIED  -- text color --   face        CDATA          #IMPLIED  -- comma-separated list of font names --   > <!ELEMENT FONT - - (%inline;)*         -- local change to font --> <!ATTLIST FONT   %coreattrs;                          -- id, class, style, title --   %i18n;                               -- lang, dir --   size        CDATA          #IMPLIED  -- [+-]nn e.g. size="+1", size="4" --   color       %Color;        #IMPLIED  -- text color --   face        CDATA          #IMPLIED  -- comma-separated list of font names --   > <!ELEMENT BR - O EMPTY                 -- forced line break --> <!ATTLIST BR   %coreattrs;                          -- id, class, style, title --   clear       (leftallrightnone) 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 % block      "P  %heading;  %list;  %preformatted;  DL  DIV  CENTER        NOSCRIPT  NOFRAMES  BLOCKQUOTE  FORM  ISINDEX  HR        TABLE  FIELDSET  ADDRESS"> <!ENTITY % flow "%block;  %inline;"> <!--=================== Document Body ====================================--> <!ELEMENT BODY O O (%flow;)* +(INSDEL) -- document body --> <!ATTLIST BODY   %attrs;                              -- %coreattrs, %i18n, %events --   onload          %Script;   #IMPLIED  -- the document has been loaded --   onunload        %Script;   #IMPLIED  -- the document has been removed --   background      %URI;      #IMPLIED  -- texture tile for document background --   %bodycolors;                         -- bgcolor, text, link, vlink, alink --   > <!ELEMENT ADDRESS - - ((%inline;)P)*  -- information on author --> <!ATTLIST ADDRESS   %attrs;                              -- %coreattrs, %i18n, %events --   > <!ELEMENT DIV - - (%flow;)*            -- generic language/style container --> <!ATTLIST DIV   %attrs;                              -- %coreattrs, %i18n, %events --   %align;                              -- align, text alignment --   %reserved;                           -- reserved for possible future use --   > <!ELEMENT CENTER - - (%flow;)*         -- shorthand for DIV align=center --> <!ATTLIST CENTER   %attrs;                              -- %coreattrs, %i18n, %events --   > <!--================== The Anchor Element ================================--> <!ENTITY % Shape "(rectcirclepolydefault)"> <!ENTITY % Coords "CDATA" -- comma-separated list of lengths --> <!ELEMENT A - - (%inline;)* -(A)       -- anchor --> <!ATTLIST A   %attrs;                              -- %coreattrs, %i18n, %events --   charset     %Charset;      #IMPLIED  -- char encoding of linked resource --   type        %ContentType;  #IMPLIED  -- advisory content type --   name        CDATA          #IMPLIED  -- named link end --   href        %URI;          #IMPLIED  -- URI for linked resource --   hreflang    %LanguageCode; #IMPLIED  -- language code --   target      %FrameTarget;  #IMPLIED  -- render in this frame --   rel         %LinkTypes;    #IMPLIED  -- forward link types --   rev         %LinkTypes;    #IMPLIED  -- reverse link types --   accesskey   %Character;    #IMPLIED  -- accessibility key character --   shape       %Shape;        rect      -- for use with client-side image maps --   coords      %Coords;       #IMPLIED  -- for use with client-side image maps --   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --   onfocus     %Script;       #IMPLIED  -- the element got the focus --   onblur      %Script;       #IMPLIED  -- the element lost the focus --   > <!--================== 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 - - ((%block;)  AREA)+ -- client-side image map --> <!ATTLIST MAP   %attrs;                              -- %coreattrs, %i18n, %events --   name        CDATA          #REQUIRED -- for reference by usemap --   > <!ELEMENT AREA - O EMPTY               -- client-side image map area --> <!ATTLIST AREA   %attrs;                              -- %coreattrs, %i18n, %events --   shape       %Shape;        rect      -- controls interpretation of coords --   coords      %Coords;       #IMPLIED  -- comma-separated list of lengths --   href        %URI;          #IMPLIED  -- URI for linked resource --   target      %FrameTarget;  #IMPLIED  -- render in this frame --   nohref      (nohref)       #IMPLIED  -- this region has no action --   alt         %Text;         #REQUIRED -- short description --   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --   accesskey   %Character;    #IMPLIED  -- accessibility key character --   onfocus     %Script;       #IMPLIED  -- the element got the focus --   onblur      %Script;       #IMPLIED  -- the element lost the focus --   > <!--================== 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=alternate media=print) --> <!ELEMENT LINK - O EMPTY               -- a media-independent link --> <!ATTLIST LINK   %attrs;                              -- %coreattrs, %i18n, %events --   charset     %Charset;      #IMPLIED  -- char encoding of linked resource --   href        %URI;          #IMPLIED  -- URI for linked resource --   hreflang    %LanguageCode; #IMPLIED  -- language code --   type        %ContentType;  #IMPLIED  -- advisory content type --   rel         %LinkTypes;    #IMPLIED  -- forward link types --   rev         %LinkTypes;    #IMPLIED  -- reverse link types --   media       %MediaDesc;    #IMPLIED  -- for rendering on these media --   target      %FrameTarget;  #IMPLIED  -- render in this frame --   > <!--=================== Images ===========================================--> <!-- Length defined in strict DTD for cellpadding/cellspacing --> <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length --> <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative --> <![ %HTML.Frameset; [ <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength --> ]]> <!ENTITY % Pixels "CDATA" -- integer representing length in pixels --> <!ENTITY % IAlign "(topmiddlebottomleftright)" -- center? --> <!-- To avoid problems with text-only UAs as well as    to make image content understandable and navigable    to users of non-visual 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         %URI;          #REQUIRED -- URI of image to embed --   alt         %Text;         #REQUIRED -- short description --   longdesc    %URI;          #IMPLIED  -- link to long description                                           (complements alt) --   name        CDATA          #IMPLIED  -- name of image for scripting --   height      %Length;       #IMPLIED  -- override height --   width       %Length;       #IMPLIED  -- override width --   usemap      %URI;          #IMPLIED  -- use client-side image map --   ismap       (ismap)        #IMPLIED  -- use server-side image map --   align       %IAlign;       #IMPLIED  -- vertical or horizontal alignment --   border      %Pixels;       #IMPLIED  -- link border width --   hspace      %Pixels;       #IMPLIED  -- horizontal gutter --   vspace      %Pixels;       #IMPLIED  -- vertical gutter --   > <!-- USEMAP points to a MAP element which may be in this document   or an external document, although the latter is not widely supported --> <!--==================== OBJECT ======================================--> <!--   OBJECT is used to embed objects as part of HTML pages   PARAM elements should precede other content. SGML mixed content   model technicality precludes specifying this formally ... --> <!ELEMENT OBJECT - - (PARAM  %flow;)*  -- generic embedded object --> <!ATTLIST OBJECT   %attrs;                              -- %coreattrs, %i18n, %events --   declare     (declare)      #IMPLIED  -- declare but don't instantiate flag --   classid     %URI;          #IMPLIED  -- identifies an implementation --   codebase    %URI;          #IMPLIED  -- base URI for classid, data, archive--   data        %URI;          #IMPLIED  -- reference to object's data --   type        %ContentType;  #IMPLIED  -- content type for data --   codetype    %ContentType;  #IMPLIED  -- content type for code --   archive     CDATA          #IMPLIED  -- space-separated list of URIs --   standby     %Text;         #IMPLIED  -- message to show while loading --   height      %Length;       #IMPLIED  -- override height --   width       %Length;       #IMPLIED  -- override width --   usemap      %URI;          #IMPLIED  -- use client-side image map --   name        CDATA          #IMPLIED  -- submit as part of form --   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --   align       %IAlign;       #IMPLIED  -- vertical or horizontal alignment --   border      %Pixels;       #IMPLIED  -- link border width --   hspace      %Pixels;       #IMPLIED  -- horizontal gutter --   vspace      %Pixels;       #IMPLIED  -- vertical gutter --   %reserved;                           -- reserved for possible future use --   > <!ELEMENT PARAM - O EMPTY              -- named property value --> <!ATTLIST PARAM   id          ID             #IMPLIED  -- document-wide unique id --   name        CDATA          #REQUIRED -- property name --   value       CDATA          #IMPLIED  -- property value --   valuetype   (DATAREFOBJECT) DATA   -- How to interpret value --   type        %ContentType;  #IMPLIED  -- content type for value                                           when valuetype=ref --   > <!--=================== Java APPLET ==================================--> <!--   One of code or object attributes must be present.   Place PARAM elements before other content. --> <!ELEMENT APPLET - - (PARAM  %flow;)* -- Java applet --> <!ATTLIST APPLET   %coreattrs;                          -- id, class, style, title --   codebase    %URI;          #IMPLIED  -- optional base URI for applet --   archive     CDATA          #IMPLIED  -- comma-separated archive list --   code        CDATA          #IMPLIED  -- applet class file --   object      CDATA          #IMPLIED  -- serialized applet file --   alt         %Text;         #IMPLIED  -- short description --   name        CDATA          #IMPLIED  -- allows applets to find each other --   width       %Length;       #REQUIRED -- initial width --   height      %Length;       #REQUIRED -- initial height --   align       %IAlign;       #IMPLIED  -- vertical or horizontal alignment --   hspace      %Pixels;       #IMPLIED  -- horizontal gutter --   vspace      %Pixels;       #IMPLIED  -- vertical gutter --   > <!--=================== Horizontal Rule ==================================--> <!ELEMENT HR - O EMPTY -- horizontal rule --> <!ATTLIST HR   %attrs;                              -- %coreattrs, %i18n, %events --   align       (leftcenterright) #IMPLIED   noshade     (noshade)      #IMPLIED   size        %Pixels;       #IMPLIED   width       %Length;       #IMPLIED   > <!--=================== Paragraphs =======================================--> <!ELEMENT P - O (%inline;)*            -- paragraph --> <!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;)* -- heading --> <!ATTLIST (%heading;)   %attrs;                              -- %coreattrs, %i18n, %events --   %align;                              -- align, text alignment --   > <!--=================== Preformatted Text ================================--> <!-- excludes markup for images and changes in font size --> <!ENTITY % pre.exclusion "IMGOBJECTAPPLETBIGSMALLSUBSUPFONTBASEFONT"> <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text --> <!ATTLIST PRE   %attrs;                              -- %coreattrs, %i18n, %events --   width       NUMBER         #IMPLIED   > <!--===================== Inline Quotes ==================================--> <!ELEMENT Q - - (%inline;)*            -- short inline quotation --> <!ATTLIST Q   %attrs;                              -- %coreattrs, %i18n, %events --   cite        %URI;          #IMPLIED  -- URI for source document or msg --   > <!--=================== Block-like Quotes ================================--> <!ELEMENT BLOCKQUOTE - - (%flow;)*     -- long quotation --> <!ATTLIST BLOCKQUOTE   %attrs;                              -- %coreattrs, %i18n, %events --   cite        %URI;          #IMPLIED  -- URI for source document or msg --   > <!--=================== Inserted/Deleted Text ============================--> <!-- INS/DEL are handled by inclusion on BODY --> <!ELEMENT (INSDEL) - - (%flow;)*      -- inserted text, deleted text --> <!ATTLIST (INSDEL)   %attrs;                              -- %coreattrs, %i18n, %events --   cite        %URI;          #IMPLIED  -- info on reason for change --   datetime    %Datetime;     #IMPLIED  -- date and time of change --   > <!--=================== Lists ============================================--> <!-- definition lists - DT for term, DD for its definition --> <!ELEMENT DL - - (DTDD)+              -- definition list --> <!ATTLIST DL   %attrs;                              -- %coreattrs, %i18n, %events --   compact     (compact)      #IMPLIED  -- reduced interitem spacing --   > <!ELEMENT DT - O (%inline;)*           -- definition term --> <!ELEMENT DD - O (%flow;)*             -- definition description --> <!ATTLIST (DTDD)   %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: "(1aAiI)" --> <!ELEMENT OL - - (LI)+                 -- ordered list --> <!ATTLIST OL   %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 "(discsquarecircle)"> <!ELEMENT UL - - (LI)+                 -- unordered list --> <!ATTLIST UL   %attrs;                              -- %coreattrs, %i18n, %events --   type        %ULStyle;      #IMPLIED  -- bullet style --   compact     (compact)      #IMPLIED  -- reduced interitem spacing --   > <!ELEMENT (DIRMENU) - - (LI)+ -(%block;) -- directory list, menu list --> <!ATTLIST DIR   %attrs;                              -- %coreattrs, %i18n, %events --   compact     (compact)      #IMPLIED  -- reduced interitem spacing --   > <!ATTLIST MENU   %attrs;                              -- %coreattrs, %i18n, %events --   compact     (compact)      #IMPLIED  -- reduced interitem spacing --   > <!ENTITY % LIStyle "CDATA"             -- constrained to: "(%ULStyle;%OLStyle;)" --> <!ELEMENT LI - O (%flow;)*             -- list item --> <!ATTLIST LI   %attrs;                              -- %coreattrs, %i18n, %events --   type        %LIStyle;      #IMPLIED  -- list item style --   value       NUMBER         #IMPLIED  -- reset sequence number --   > <!--================ Forms ===============================================--> <!ELEMENT FORM - - (%flow;)* -(FORM)   -- interactive form --> <!ATTLIST FORM   %attrs;                              -- %coreattrs, %i18n, %events --   action      %URI;          #REQUIRED -- server-side form handler --   method      (GETPOST)     GET       -- HTTP method used to submit the form--   enctype     %ContentType;  "application/x-www-form-urlencoded"   accept      %ContentTypes; #IMPLIED  -- list of MIME types for file upload --   name        CDATA          #IMPLIED  -- name of form for scripting --   onsubmit    %Script;       #IMPLIED  -- the form was submitted --   onreset     %Script;       #IMPLIED  -- the form was reset --   target      %FrameTarget;  #IMPLIED  -- render in this frame --   accept-charset %Charsets;  #IMPLIED  -- list of supported charsets --   > <!-- Each label must not contain more than ONE field --> <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text --> <!ATTLIST LABEL   %attrs;                              -- %coreattrs, %i18n, %events --   for         IDREF          #IMPLIED  -- matches field ID value --   accesskey   %Character;    #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)"    > <!-- attribute name required for all but submit and reset --> <!ELEMENT INPUT - O EMPTY              -- form control --> <!ATTLIST INPUT   %attrs;                              -- %coreattrs, %i18n, %events --   type        %InputType;    TEXT      -- what kind of widget is needed --   name        CDATA          #IMPLIED  -- submit as part of form --   value       CDATA          #IMPLIED  -- specify for radio buttons and checkboxes --   checked     (checked)      #IMPLIED  -- for radio buttons and checkboxes --   disabled    (disabled)     #IMPLIED  -- 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         %URI;          #IMPLIED  -- for fields with images --   alt         CDATA          #IMPLIED  -- short description --   usemap      %URI;          #IMPLIED  -- use client-side image map --   ismap       (ismap)        #IMPLIED  -- use server-side image map --   tabindex    NUMBER         #IMPLIED  -- position in tabbing order --   accesskey   %Character;    #IMPLIED  -- accessibility key character --   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      %ContentTypes; #IMPLIED  -- list of MIME types for file upload --   align       %IAlign;       #IMPLIED  -- vertical or horizontal alignment --   %reserved;                           -- reserved for possible future use --   > <!ELEMENT SELECT - - (OPTGROUPOPTION)+ -- option selector --> <!ATTLIST SELECT   %attrs;                              -- %coreattrs, %i18n, %events --   name        CDATA          #IMPLIED  -- field name --   size        NUMBER         #IMPLIED  -- rows visible --   multiple    (multiple)     #IMPLIED  -- default is single selection --   disabled    (disabled)     #IMPLIED  -- 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 --   onchange    %Script;       #IMPLIED  -- the element value was changed --   %reserved;                           -- reserved for possible future use --   > <!ELEMENT OPTGROUP - - (OPTION)+ -- option group --> <!ATTLIST OPTGROUP   %attrs;                              -- %coreattrs, %i18n, %events --   disabled    (disabled)     #IMPLIED  -- unavailable in this context --   label       %Text;         #REQUIRED -- for use in hierarchical menus --   > <!ELEMENT OPTION - O (#PCDATA)         -- selectable choice --> <!ATTLIST OPTION   %attrs;                              -- %coreattrs, %i18n, %events --   selected    (selected)     #IMPLIED   disabled    (disabled)     #IMPLIED  -- unavailable in this context --   label       %Text;         #IMPLIED  - 


HTML & XHTML(c) The definitive guide
Data Networks: Routing, Security, and Performance Optimization
ISBN: 596527322
EAN: 2147483647
Year: 2004
Pages: 189
Authors: Tony Kenyon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net