2 This is the HTML 4.0 Transitional DTD, which includes
3 presentation attributes and elements that W3C expects to phase out
4 as 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.
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.
13 Draft: $Date: 2002-08-25 10:21:57 $
16 Dave Raggett <dsr@w3.org>
17 Arnaud Le Hors <lehors@w3.org>
18 Ian Jacobs <ij@w3.org>
20 Further information about HTML 4.0 is available at:
22 http://www.w3.org/TR/REC-html40
24 <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0 Transitional//EN"
27 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
28 "http://www.w3.org/TR/REC-html40/loose.dtd">
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.
41 The FPI for the Strict HTML 4.0 DTD is:
43 "-//W3C//DTD HTML 4.0//EN"
47 http://www.w3.org/TR/REC-html40/strict.dtd
49 Authors should use the Strict DTD unless they need the
50 presentation control for user agents that don't (adequately)
53 If you are writing a document that includes frames, use
56 "-//W3C//DTD HTML 4.0 Frameset//EN"
60 http://www.w3.org/TR/REC-html40/frameset.dtd
62 The following URIs are supported in relation to HTML 4.0
64 "http://www.w3.org/TR/REC-html40/strict.dtd" (Strict DTD)
65 "http://www.w3.org/TR/REC-html40/loose.dtd" (Loose DTD)
66 "http://www.w3.org/TR/REC-html40/frameset.dtd" (Frameset DTD)
67 "http://www.w3.org/TR/REC-html40/HTMLlat1.ent" (Latin-1 entities)
68 "http://www.w3.org/TR/REC-html40/HTMLsymbol.ent" (Symbol entities)
69 "http://www.w3.org/TR/REC-html40/HTMLspecial.ent" (Special entities)
71 These URIs point to the latest version of each file. To reference
72 this specific revision use the following URIs:
74 "http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd"
75 "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd"
76 "http://www.w3.org/TR/1998/REC-html40-19980424/frameset.dtd"
77 "http://www.w3.org/TR/1998/REC-html40-19980424/HTMLlat1.ent"
78 "http://www.w3.org/TR/1998/REC-html40-19980424/HTMLsymbol.ent"
79 "http://www.w3.org/TR/1998/REC-html40-19980424/HTMLspecial.ent"
83 <!--================== Imported Names ====================================-->
85 <!ENTITY % ContentType "CDATA"
86 -- media type, as per [RFC2045]
89 <!ENTITY % ContentTypes "CDATA"
90 -- comma-separated list of media types, as per [RFC2045]
93 <!ENTITY % Charset "CDATA"
94 -- a character encoding, as per [RFC2045]
97 <!ENTITY % Charsets "CDATA"
98 -- a space separated list of character encodings, as per [RFC2045]
101 <!ENTITY % LanguageCode "NAME"
102 -- a language code, as per [RFC1766]
105 <!ENTITY % Character "CDATA"
106 -- a single character from [ISO10646]
109 <!ENTITY % LinkTypes "CDATA"
110 -- space-separated list of link types
113 <!ENTITY % MediaDesc "CDATA"
114 -- single or comma-separated list of media descriptors
117 <!ENTITY % URI "CDATA"
118 -- a Uniform Resource Identifier,
122 <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
125 <!ENTITY % Script "CDATA" -- script expression -->
127 <!ENTITY % StyleSheet "CDATA" -- style sheet data -->
129 <!ENTITY % FrameTarget "CDATA" -- render in this frame -->
132 <!ENTITY % Text "CDATA">
135 <!-- Parameter Entities -->
137 <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
139 <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
141 <!ENTITY % list "UL | OL | DIR | MENU">
143 <!ENTITY % preformatted "PRE">
145 <!ENTITY % Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->
147 <!-- There are also 16 widely known color names with their sRGB values:
149 Black = #000000 Green = #008000
150 Silver = #C0C0C0 Lime = #00FF00
151 Gray = #808080 Olive = #808000
152 White = #FFFFFF Yellow = #FFFF00
153 Maroon = #800000 Navy = #000080
154 Red = #FF0000 Blue = #0000FF
155 Purple = #800080 Teal = #008080
156 Fuchsia= #FF00FF Aqua = #00FFFF
159 <!ENTITY % bodycolors "
160 bgcolor %Color; #IMPLIED -- document background color --
161 text %Color; #IMPLIED -- document text color --
162 link %Color; #IMPLIED -- color of links --
163 vlink %Color; #IMPLIED -- color of visited links --
164 alink %Color; #IMPLIED -- color of selected links --
167 <!--================ Character mnemonic entities =========================-->
169 <!ENTITY % HTMLlat1 PUBLIC
170 "-//W3C//ENTITIES Latin1//EN//HTML"
171 "http://www.w3.org/TR/1998/REC-html40-19980424/HTMLlat1.ent">
174 <!ENTITY % HTMLsymbol PUBLIC
175 "-//W3C//ENTITIES Symbols//EN//HTML"
176 "http://www.w3.org/TR/1998/REC-html40-19980424/HTMLsymbol.ent">
179 <!ENTITY % HTMLspecial PUBLIC
180 "-//W3C//ENTITIES Special//EN//HTML"
181 "http://www.w3.org/TR/1998/REC-html40-19980424/HTMLspecial.ent">
183 <!--=================== Generic Attributes ===============================-->
186 "id ID #IMPLIED -- document-wide unique id --
187 class CDATA #IMPLIED -- space separated list of classes --
188 style %StyleSheet; #IMPLIED -- associated style info --
189 title %Text; #IMPLIED -- advisory title/amplification --"
193 "lang %LanguageCode; #IMPLIED -- language code --
194 dir (ltr|rtl) #IMPLIED -- direction for weak/neutral text --"
198 "onclick %Script; #IMPLIED -- a pointer button was clicked --
199 ondblclick %Script; #IMPLIED -- a pointer button was double clicked--
200 onmousedown %Script; #IMPLIED -- a pointer button was pressed down --
201 onmouseup %Script; #IMPLIED -- a pointer button was released --
202 onmouseover %Script; #IMPLIED -- a pointer was moved onto --
203 onmousemove %Script; #IMPLIED -- a pointer was moved within --
204 onmouseout %Script; #IMPLIED -- a pointer was moved away --
205 onkeypress %Script; #IMPLIED -- a key was pressed and released --
206 onkeydown %Script; #IMPLIED -- a key was pressed down --
207 onkeyup %Script; #IMPLIED -- a key was released --"
210 <!-- Reserved Feature Switch -->
211 <!ENTITY % HTML.Reserved "IGNORE">
213 <!-- The following attributes are reserved for possible future use -->
214 <![ %HTML.Reserved; [
216 "datasrc %URI; #IMPLIED -- a single or tabular Data Source --
217 datafld CDATA #IMPLIED -- the property or column name --
218 dataformatas (plaintext|html) plaintext -- text or html --"
222 <!ENTITY % reserved "">
224 <!ENTITY % attrs "%coreattrs; %i18n; %events;">
226 <!ENTITY % align "align (left|center|right|justify) #IMPLIED"
227 -- default is left for ltr paragraphs, right for rtl --
230 <!--=================== Text Markup ======================================-->
233 "TT | I | B | U | S | STRIKE | BIG | SMALL">
235 <!ENTITY % phrase "EM | STRONG | DFN | CODE |
236 SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
239 "A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |
240 MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">
242 <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
244 <!-- %inline; covers inline or "text-level" elements -->
245 <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
247 <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
248 <!ATTLIST (%fontstyle;|%phrase;)
249 %attrs; -- %coreattrs, %i18n, %events --
252 <!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
254 %attrs; -- %coreattrs, %i18n, %events --
257 <!ELEMENT SPAN - - (%inline;)* -- generic language/style container -->
259 %attrs; -- %coreattrs, %i18n, %events --
260 %reserved; -- reserved for possible future use --
263 <!ELEMENT BDO - - (%inline;)* -- I18N BiDi over-ride -->
265 %coreattrs; -- id, class, style, title --
266 lang %LanguageCode; #IMPLIED -- language code --
267 dir (ltr|rtl) #REQUIRED -- directionality --
270 <!ELEMENT BASEFONT - O EMPTY -- base font size -->
272 id ID #IMPLIED -- document-wide unique id --
273 size CDATA #REQUIRED -- base font size for FONT elements --
274 color %Color; #IMPLIED -- text color --
275 face CDATA #IMPLIED -- comma separated list of font names --
278 <!ELEMENT FONT - - (%inline;)* -- local change to font -->
280 %coreattrs; -- id, class, style, title --
281 %i18n; -- lang, dir --
282 size CDATA #IMPLIED -- [+|-]nn e.g. size="+1", size="4" --
283 color %Color; #IMPLIED -- text color --
284 face CDATA #IMPLIED -- comma separated list of font names --
287 <!ELEMENT BR - O EMPTY -- forced line break -->
289 %coreattrs; -- id, class, style, title --
290 clear (left|all|right|none) none -- control of text flow --
293 <!--================== HTML content models ===============================-->
296 HTML has two basic content models:
298 %inline; character level elements and text strings
299 %block; block-like elements e.g. paragraphs and lists
303 "P | %heading; | %list; | %preformatted; | DL | DIV | CENTER |
304 NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |
305 TABLE | FIELDSET | ADDRESS">
307 <!ENTITY % flow "%block; | %inline;">
309 <!--=================== Document Body ====================================-->
311 <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->
313 %attrs; -- %coreattrs, %i18n, %events --
314 onload %Script; #IMPLIED -- the document has been loaded --
315 onunload %Script; #IMPLIED -- the document has been removed --
316 background %URI; #IMPLIED -- texture tile for document
318 %bodycolors; -- bgcolor, text, link, vlink, alink --
321 <!ELEMENT ADDRESS - - ((%inline;)|P)* -- information on author -->
323 %attrs; -- %coreattrs, %i18n, %events --
326 <!ELEMENT DIV - - (%flow;)* -- generic language/style container -->
328 %attrs; -- %coreattrs, %i18n, %events --
329 %align; -- align, text alignment --
330 %reserved; -- reserved for possible future use --
333 <!ELEMENT CENTER - - (%flow;)* -- shorthand for DIV align=center -->
335 %attrs; -- %coreattrs, %i18n, %events --
338 <!--================== The Anchor Element ================================-->
340 <!ENTITY % Shape "(rect|circle|poly|default)">
341 <!ENTITY % Coords "CDATA" -- comma separated list of lengths -->
343 <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
345 %attrs; -- %coreattrs, %i18n, %events --
346 charset %Charset; #IMPLIED -- char encoding of linked resource --
347 type %ContentType; #IMPLIED -- advisory content type --
348 name CDATA #IMPLIED -- named link end --
349 href %URI; #IMPLIED -- URI for linked resource --
350 hreflang %LanguageCode; #IMPLIED -- language code --
351 target %FrameTarget; #IMPLIED -- render in this frame --
352 rel %LinkTypes; #IMPLIED -- forward link types --
353 rev %LinkTypes; #IMPLIED -- reverse link types --
354 accesskey %Character; #IMPLIED -- accessibility key character --
355 shape %Shape; rect -- for use with client-side image maps --
356 coords %Coords; #IMPLIED -- for use with client-side image maps --
357 tabindex NUMBER #IMPLIED -- position in tabbing order --
358 onfocus %Script; #IMPLIED -- the element got the focus --
359 onblur %Script; #IMPLIED -- the element lost the focus --
362 <!--================== Client-side image maps ============================-->
364 <!-- These can be placed in the same document or grouped in a
365 separate document although this isn't yet widely supported -->
367 <!ELEMENT MAP - - ((%block;)+ | AREA+) -- client-side image map -->
369 %attrs; -- %coreattrs, %i18n, %events --
370 name CDATA #REQUIRED -- for reference by usemap --
373 <!ELEMENT AREA - O EMPTY -- client-side image map area -->
375 %attrs; -- %coreattrs, %i18n, %events --
376 shape %Shape; rect -- controls interpretation of coords --
377 coords %Coords; #IMPLIED -- comma separated list of lengths --
378 href %URI; #IMPLIED -- URI for linked resource --
379 target %FrameTarget; #IMPLIED -- render in this frame --
380 nohref (nohref) #IMPLIED -- this region has no action --
381 alt %Text; #REQUIRED -- short description --
382 tabindex NUMBER #IMPLIED -- position in tabbing order --
383 accesskey %Character; #IMPLIED -- accessibility key character --
384 onfocus %Script; #IMPLIED -- the element got the focus --
385 onblur %Script; #IMPLIED -- the element lost the focus --
388 <!--================== The LINK Element ==================================-->
391 Relationship values can be used in principle:
393 a) for document specific toolbars/menus when used
394 with the LINK element in document head e.g.
395 start, contents, previous, next, index, end, help
396 b) to link to a separate style sheet (rel=stylesheet)
397 c) to make a link to a script (rel=script)
398 d) by stylesheets to control how collections of
399 html nodes are rendered into printed documents
400 e) to make a link to a printable version of this document
401 e.g. a postscript or pdf version (rel=alternate media=print)
404 <!ELEMENT LINK - O EMPTY -- a media-independent link -->
406 %attrs; -- %coreattrs, %i18n, %events --
407 charset %Charset; #IMPLIED -- char encoding of linked resource --
408 href %URI; #IMPLIED -- URI for linked resource --
409 hreflang %LanguageCode; #IMPLIED -- language code --
410 type %ContentType; #IMPLIED -- advisory content type --
411 rel %LinkTypes; #IMPLIED -- forward link types --
412 rev %LinkTypes; #IMPLIED -- reverse link types --
413 media %MediaDesc; #IMPLIED -- for rendering on these media --
414 target %FrameTarget; #IMPLIED -- render in this frame --
417 <!--=================== Images ===========================================-->
419 <!-- Length defined in strict DTD for cellpadding/cellspacing -->
420 <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
421 <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
423 <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
425 <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
427 <!ENTITY % IAlign "(top|middle|bottom|left|right)" -- center? -->
429 <!-- To avoid problems with text-only UAs as well as
430 to make image content understandable and navigable
431 to users of non-visual UAs, you need to provide
432 a description with ALT, and avoid server-side image maps -->
433 <!ELEMENT IMG - O EMPTY -- Embedded image -->
435 %attrs; -- %coreattrs, %i18n, %events --
436 src %URI; #REQUIRED -- URI of image to embed --
437 alt %Text; #REQUIRED -- short description --
438 longdesc %URI; #IMPLIED -- link to long description
440 height %Length; #IMPLIED -- override height --
441 width %Length; #IMPLIED -- override width --
442 usemap %URI; #IMPLIED -- use client-side image map --
443 ismap (ismap) #IMPLIED -- use server-side image map --
444 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
445 border %Length; #IMPLIED -- link border width --
446 hspace %Pixels; #IMPLIED -- horizontal gutter --
447 vspace %Pixels; #IMPLIED -- vertical gutter --
450 <!-- USEMAP points to a MAP element which may be in this document
451 or an external document, although the latter is not widely supported -->
453 <!--==================== OBJECT ======================================-->
455 OBJECT is used to embed objects as part of HTML pages
456 PARAM elements should precede other content. SGML mixed content
457 model technicality precludes specifying this formally ...
460 <!ELEMENT OBJECT - - (PARAM | %flow;)*
461 -- generic embedded object -->
463 %attrs; -- %coreattrs, %i18n, %events --
464 declare (declare) #IMPLIED -- declare but don't instantiate flag --
465 classid %URI; #IMPLIED -- identifies an implementation --
466 codebase %URI; #IMPLIED -- base URI for classid, data, archive--
467 data %URI; #IMPLIED -- reference to object's data --
468 type %ContentType; #IMPLIED -- content type for data --
469 codetype %ContentType; #IMPLIED -- content type for code --
470 archive %URI; #IMPLIED -- space separated archive list --
471 standby %Text; #IMPLIED -- message to show while loading --
472 height %Length; #IMPLIED -- override height --
473 width %Length; #IMPLIED -- override width --
474 usemap %URI; #IMPLIED -- use client-side image map --
475 name CDATA #IMPLIED -- submit as part of form --
476 tabindex NUMBER #IMPLIED -- position in tabbing order --
477 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
478 border %Length; #IMPLIED -- link border width --
479 hspace %Pixels; #IMPLIED -- horizontal gutter --
480 vspace %Pixels; #IMPLIED -- vertical gutter --
481 %reserved; -- reserved for possible future use --
484 <!ELEMENT PARAM - O EMPTY -- named property value -->
486 id ID #IMPLIED -- document-wide unique id --
487 name CDATA #REQUIRED -- property name --
488 value CDATA #IMPLIED -- property value --
489 valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
490 type %ContentType; #IMPLIED -- content type for value
491 when valuetype=ref --
494 <!--=================== Java APPLET ==================================-->
496 One of code or object attributes must be present.
497 Place PARAM elements before other content.
499 <!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet -->
501 %coreattrs; -- id, class, style, title --
502 codebase %URI; #IMPLIED -- optional base URI for applet --
503 archive CDATA #IMPLIED -- comma separated archive list --
504 code CDATA #IMPLIED -- applet class file --
505 object CDATA #IMPLIED -- serialized applet file --
506 alt %Text; #IMPLIED -- short description --
507 name CDATA #IMPLIED -- allows applets to find each other --
508 width %Length; #REQUIRED -- initial width --
509 height %Length; #REQUIRED -- initial height --
510 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
511 hspace %Pixels; #IMPLIED -- horizontal gutter --
512 vspace %Pixels; #IMPLIED -- vertical gutter --
515 <!--=================== Horizontal Rule ==================================-->
517 <!ELEMENT HR - O EMPTY -- horizontal rule -->
519 %coreattrs; -- id, class, style, title --
521 align (left|center|right) #IMPLIED
522 noshade (noshade) #IMPLIED
523 size %Pixels; #IMPLIED
524 width %Length; #IMPLIED
527 <!--=================== Paragraphs =======================================-->
529 <!ELEMENT P - O (%inline;)* -- paragraph -->
531 %attrs; -- %coreattrs, %i18n, %events --
532 %align; -- align, text alignment --
535 <!--=================== Headings =========================================-->
538 There are six levels of headings from H1 (the most important)
539 to H6 (the least important).
542 <!ELEMENT (%heading;) - - (%inline;)* -- heading -->
543 <!ATTLIST (%heading;)
544 %attrs; -- %coreattrs, %i18n, %events --
545 %align; -- align, text alignment --
548 <!--=================== Preformatted Text ================================-->
550 <!-- excludes markup for images and changes in font size -->
551 <!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">
553 <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
555 %attrs; -- %coreattrs, %i18n, %events --
556 width NUMBER #IMPLIED
559 <!--===================== Inline Quotes ==================================-->
561 <!ELEMENT Q - - (%inline;)* -- short inline quotation -->
563 %attrs; -- %coreattrs, %i18n, %events --
564 cite %URI; #IMPLIED -- URI for source document or msg --
567 <!--=================== Block-like Quotes ================================-->
569 <!ELEMENT BLOCKQUOTE - - (%flow;)* -- long quotation -->
571 %attrs; -- %coreattrs, %i18n, %events --
572 cite %URI; #IMPLIED -- URI for source document or msg --
575 <!--=================== Inserted/Deleted Text ============================-->
578 <!-- INS/DEL are handled by inclusion on BODY -->
579 <!ELEMENT (INS|DEL) - - (%flow;)* -- inserted text, deleted text -->
581 %attrs; -- %coreattrs, %i18n, %events --
582 cite %URI; #IMPLIED -- info on reason for change --
583 datetime %Datetime; #IMPLIED -- date and time of change --
586 <!--=================== Lists ============================================-->
588 <!-- definition lists - DT for term, DD for its definition -->
590 <!ELEMENT DL - - (DT|DD)+ -- definition list -->
592 %attrs; -- %coreattrs, %i18n, %events --
593 compact (compact) #IMPLIED -- reduced interitem spacing --
596 <!ELEMENT DT - O (%inline;)* -- definition term -->
597 <!ELEMENT DD - O (%flow;)* -- definition description -->
599 %attrs; -- %coreattrs, %i18n, %events --
602 <!-- Ordered lists (OL) Numbering style
604 1 arablic numbers 1, 2, 3, ...
605 a lower alpha a, b, c, ...
606 A upper alpha A, B, C, ...
607 i lower roman i, ii, iii, ...
608 I upper roman I, II, III, ...
610 The style is applied to the sequence number which by default
611 is reset to 1 for the first list item in an ordered list.
613 This can't be expressed directly in SGML due to case folding.
616 <!ENTITY % OLStyle "CDATA" -- constrained to: "(1|a|A|i|I)" -->
618 <!ELEMENT OL - - (LI)+ -- ordered list -->
620 %attrs; -- %coreattrs, %i18n, %events --
621 type %OLStyle; #IMPLIED -- numbering style --
622 compact (compact) #IMPLIED -- reduced interitem spacing --
623 start NUMBER #IMPLIED -- starting sequence number --
626 <!-- Unordered Lists (UL) bullet styles -->
627 <!ENTITY % ULStyle "(disc|square|circle)">
629 <!ELEMENT UL - - (LI)+ -- unordered list -->
631 %attrs; -- %coreattrs, %i18n, %events --
632 type %ULStyle; #IMPLIED -- bullet style --
633 compact (compact) #IMPLIED -- reduced interitem spacing --
636 <!ELEMENT (DIR|MENU) - - (LI)+ -(%block;) -- directory list, menu list -->
638 %attrs; -- %coreattrs, %i18n, %events --
639 compact (compact) #IMPLIED
642 %attrs; -- %coreattrs, %i18n, %events --
643 compact (compact) #IMPLIED
646 <!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle;|%OLStyle;)" -->
648 <!ELEMENT LI - O (%flow;)* -- list item -->
650 %attrs; -- %coreattrs, %i18n, %events --
651 type %LIStyle; #IMPLIED -- list item style --
652 value NUMBER #IMPLIED -- reset sequence number --
655 <!--================ Forms ===============================================-->
656 <!ELEMENT FORM - - (%flow;)* -(FORM) -- interactive form -->
658 %attrs; -- %coreattrs, %i18n, %events --
659 action %URI; #REQUIRED -- server-side form handler --
660 method (GET|POST) GET -- HTTP method used to submit the form--
661 enctype %ContentType; "application/x-www-form-urlencoded"
662 onsubmit %Script; #IMPLIED -- the form was submitted --
663 onreset %Script; #IMPLIED -- the form was reset --
664 target %FrameTarget; #IMPLIED -- render in this frame --
665 accept-charset %Charsets; #IMPLIED -- list of supported charsets --
668 <!-- Each label must not contain more than ONE field -->
669 <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
671 %attrs; -- %coreattrs, %i18n, %events --
672 for IDREF #IMPLIED -- matches field ID value --
673 accesskey %Character; #IMPLIED -- accessibility key character --
674 onfocus %Script; #IMPLIED -- the element got the focus --
675 onblur %Script; #IMPLIED -- the element lost the focus --
679 "(TEXT | PASSWORD | CHECKBOX |
680 RADIO | SUBMIT | RESET |
681 FILE | HIDDEN | IMAGE | BUTTON)"
684 <!-- attribute name required for all but submit & reset -->
685 <!ELEMENT INPUT - O EMPTY -- form control -->
687 %attrs; -- %coreattrs, %i18n, %events --
688 type %InputType; TEXT -- what kind of widget is needed --
689 name CDATA #IMPLIED -- submit as part of form --
690 value CDATA #IMPLIED -- required for radio and checkboxes --
691 checked (checked) #IMPLIED -- for radio buttons and check boxes --
692 disabled (disabled) #IMPLIED -- unavailable in this context --
693 readonly (readonly) #IMPLIED -- for text and passwd --
694 size CDATA #IMPLIED -- specific to each type of field --
695 maxlength NUMBER #IMPLIED -- max chars for text fields --
696 src %URI; #IMPLIED -- for fields with images --
697 alt CDATA #IMPLIED -- short description --
698 usemap %URI; #IMPLIED -- use client-side image map --
699 tabindex NUMBER #IMPLIED -- position in tabbing order --
700 accesskey %Character; #IMPLIED -- accessibility key character --
701 onfocus %Script; #IMPLIED -- the element got the focus --
702 onblur %Script; #IMPLIED -- the element lost the focus --
703 onselect %Script; #IMPLIED -- some text was selected --
704 onchange %Script; #IMPLIED -- the element value was changed --
705 accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
706 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
707 %reserved; -- reserved for possible future use --
710 <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
712 %attrs; -- %coreattrs, %i18n, %events --
713 name CDATA #IMPLIED -- field name --
714 size NUMBER #IMPLIED -- rows visible --
715 multiple (multiple) #IMPLIED -- default is single selection --
716 disabled (disabled) #IMPLIED -- unavailable in this context --
717 tabindex NUMBER #IMPLIED -- position in tabbing order --
718 onfocus %Script; #IMPLIED -- the element got the focus --
719 onblur %Script; #IMPLIED -- the element lost the focus --
720 onchange %Script; #IMPLIED -- the element value was changed --
721 %reserved; -- reserved for possible future use --
724 <!ELEMENT OPTGROUP - - (OPTION)+ -- option group -->
726 %attrs; -- %coreattrs, %i18n, %events --
727 disabled (disabled) #IMPLIED -- unavailable in this context --
728 label %Text; #REQUIRED -- for use in hierarchical menus --
731 <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
733 %attrs; -- %coreattrs, %i18n, %events --
734 selected (selected) #IMPLIED
735 disabled (disabled) #IMPLIED -- unavailable in this context --
736 label %Text; #IMPLIED -- for use in hierarchical menus --
737 value CDATA #IMPLIED -- defaults to element content --
740 <!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
742 %attrs; -- %coreattrs, %i18n, %events --
744 rows NUMBER #REQUIRED
745 cols NUMBER #REQUIRED
746 disabled (disabled) #IMPLIED -- unavailable in this context --
747 readonly (readonly) #IMPLIED
748 tabindex NUMBER #IMPLIED -- position in tabbing order --
749 accesskey %Character; #IMPLIED -- accessibility key character --
750 onfocus %Script; #IMPLIED -- the element got the focus --
751 onblur %Script; #IMPLIED -- the element lost the focus --
752 onselect %Script; #IMPLIED -- some text was selected --
753 onchange %Script; #IMPLIED -- the element value was changed --
754 %reserved; -- reserved for possible future use --
758 #PCDATA is to solve the mixed content problem,
759 per specification only whitespace is allowed there!
761 <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
763 %attrs; -- %coreattrs, %i18n, %events --
766 <!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
767 <!ENTITY % LAlign "(top|bottom|left|right)">
770 %attrs; -- %coreattrs, %i18n, %events --
771 accesskey %Character; #IMPLIED -- accessibility key character --
772 align %LAlign; #IMPLIED -- relative to fieldset --
776 (%flow;)* -(A|%formctrl;|FORM|ISINDEX|FIELDSET|IFRAME)
779 %attrs; -- %coreattrs, %i18n, %events --
781 value CDATA #IMPLIED -- sent to server when submitted --
782 type (button|submit|reset) submit -- for use as form button --
783 disabled (disabled) #IMPLIED -- unavailable in this context --
784 tabindex NUMBER #IMPLIED -- position in tabbing order --
785 accesskey %Character; #IMPLIED -- accessibility key character --
786 onfocus %Script; #IMPLIED -- the element got the focus --
787 onblur %Script; #IMPLIED -- the element lost the focus --
788 %reserved; -- reserved for possible future use --
791 <!--======================= Tables =======================================-->
793 <!-- IETF HTML table standard, see [RFC1942] -->
796 The BORDER attribute sets the thickness of the frame around the
797 table. The default units are screen pixels.
799 The FRAME attribute specifies which parts of the frame around
800 the table should be rendered. The values are not the same as
801 CALS to avoid a name clash with the VALIGN attribute.
803 The value "border" is included for backwards compatibility with
804 <TABLE BORDER> which yields frame=border and border=implied
805 For <TABLE BORDER=1> you get border=1 and frame=implied. In this
806 case, it is appropriate to treat this as frame=border for backwards
807 compatibility with deployed browsers.
809 <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
812 The RULES attribute defines which rules to draw between cells:
814 If RULES is absent then assume:
815 "none" if BORDER is absent or BORDER=0 otherwise "all"
818 <!ENTITY % TRules "(none | groups | rows | cols | all)">
820 <!-- horizontal placement of table relative to document -->
821 <!ENTITY % TAlign "(left|center|right)">
823 <!-- horizontal alignment attributes for cell contents -->
824 <!ENTITY % cellhalign
825 "align (left|center|right|justify|char) #IMPLIED
826 char %Character; #IMPLIED -- alignment char, e.g. char=':' --
827 charoff %Length; #IMPLIED -- offset for alignment char --"
830 <!-- vertical alignment attributes for cell contents -->
831 <!ENTITY % cellvalign
832 "valign (top|middle|bottom|baseline) #IMPLIED"
836 (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
837 <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
838 <!ELEMENT THEAD - O (TR)+ -- table header -->
839 <!ELEMENT TFOOT - O (TR)+ -- table footer -->
840 <!ELEMENT TBODY O O (TR)+ -- table body -->
841 <!ELEMENT COLGROUP - O (col)* -- table column group -->
842 <!ELEMENT COL - O EMPTY -- table column -->
843 <!ELEMENT TR - O (TH|TD)+ -- table row -->
844 <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->
846 <!ATTLIST TABLE -- table element --
847 %attrs; -- %coreattrs, %i18n, %events --
848 summary %Text; #IMPLIED -- purpose/structure for speech output--
849 width %Length; #IMPLIED -- table width --
850 border %Pixels; #IMPLIED -- controls frame width around table --
851 frame %TFrame; #IMPLIED -- which parts of frame to render --
852 rules %TRules; #IMPLIED -- rulings between rows and cols --
853 cellspacing %Length; #IMPLIED -- spacing between cells --
854 cellpadding %Length; #IMPLIED -- spacing within cells --
855 align %TAlign; #IMPLIED -- table position relative to window --
856 bgcolor %Color; #IMPLIED -- background color for cells --
857 %reserved; -- reserved for possible future use --
858 datapagesize CDATA #IMPLIED -- reserved for possible future use --
861 <!ENTITY % CAlign "(top|bottom|left|right)">
864 %attrs; -- %coreattrs, %i18n, %events --
865 align %CAlign; #IMPLIED -- relative to table --
869 COLGROUP groups a set of COL elements. It allows you to group
870 several semantically related columns together.
873 %attrs; -- %coreattrs, %i18n, %events --
874 span NUMBER 1 -- default number of columns in group --
875 width %MultiLength; #IMPLIED -- default width for enclosed COLs --
876 %cellhalign; -- horizontal alignment in cells --
877 %cellvalign; -- vertical alignment in cells --
881 COL elements define the alignment properties for cells in
884 The WIDTH attribute specifies the width of the columns, e.g.
886 width=64 width in screen pixels
887 width=0.5* relative width of 0.5
889 The SPAN attribute causes the attributes of one
890 COL element to apply to more than one column.
892 <!ATTLIST COL -- column groups and properties --
893 %attrs; -- %coreattrs, %i18n, %events --
894 span NUMBER 1 -- COL attributes affect N columns --
895 width %MultiLength; #IMPLIED -- column width specification --
896 %cellhalign; -- horizontal alignment in cells --
897 %cellvalign; -- vertical alignment in cells --
901 Use THEAD to duplicate headers when breaking table
902 across page boundaries, or for static headers when
903 TBODY sections are rendered in scrolling panel.
905 Use TFOOT to duplicate footers when breaking table
906 across page boundaries, or for static footers when
907 TBODY sections are rendered in scrolling panel.
909 Use multiple TBODY sections when rules are needed
910 between groups of table rows.
912 <!ATTLIST (THEAD|TBODY|TFOOT) -- table section --
913 %attrs; -- %coreattrs, %i18n, %events --
914 %cellhalign; -- horizontal alignment in cells --
915 %cellvalign; -- vertical alignment in cells --
918 <!ATTLIST TR -- table row --
919 %attrs; -- %coreattrs, %i18n, %events --
920 %cellhalign; -- horizontal alignment in cells --
921 %cellvalign; -- vertical alignment in cells --
922 bgcolor %Color; #IMPLIED -- background color for row --
926 <!-- Scope is simpler than axes attribute for common tables -->
927 <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
929 <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
930 <!ATTLIST (TH|TD) -- header or data cell --
931 %attrs; -- %coreattrs, %i18n, %events --
932 abbr %Text; #IMPLIED -- abbreviation for header cell --
933 axis CDATA #IMPLIED -- names groups of related headers--
934 headers IDREFS #IMPLIED -- list of id's for header cells --
935 scope %Scope; #IMPLIED -- scope covered by header cells --
936 rowspan NUMBER 1 -- number of rows spanned by cell --
937 colspan NUMBER 1 -- number of cols spanned by cell --
938 %cellhalign; -- horizontal alignment in cells --
939 %cellvalign; -- vertical alignment in cells --
940 nowrap (nowrap) #IMPLIED -- suppress word wrap --
941 bgcolor %Color; #IMPLIED -- cell background color --
942 width %Pixels; #IMPLIED -- width for cell --
943 height %Pixels; #IMPLIED -- height for cell --
946 <!--================== Document Frames ===================================-->
949 The content model for HTML documents depends on whether the HEAD is
950 followed by a FRAMESET or BODY element. The widespread omission of
951 the BODY start tag makes it impractical to define the content model
952 without the use of a marked section.
955 <!-- Feature Switch for frameset documents -->
956 <!ENTITY % HTML.Frameset "IGNORE">
958 <![ %HTML.Frameset; [
959 <!ELEMENT FRAMESET - - ((FRAMESET|FRAME)+ & NOFRAMES?) -- window subdivision-->
961 %coreattrs; -- id, class, style, title --
962 rows %MultiLengths; #IMPLIED -- list of lengths,
963 default: 100% (1 row) --
964 cols %MultiLengths; #IMPLIED -- list of lengths,
965 default: 100% (1 col) --
966 onload %Script; #IMPLIED -- all the frames have been loaded --
967 onunload %Script; #IMPLIED -- all the frames have been removed --
971 <![ %HTML.Frameset; [
972 <!-- reserved frame names start with "_" otherwise starts with letter -->
973 <!ELEMENT FRAME - O EMPTY -- subwindow -->
975 %coreattrs; -- id, class, style, title --
976 longdesc %URI; #IMPLIED -- link to long description
977 (complements title) --
978 name CDATA #IMPLIED -- name of frame for targetting --
979 src %URI; #IMPLIED -- source of frame content --
980 frameborder (1|0) 1 -- request frame borders? --
981 marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
982 marginheight %Pixels; #IMPLIED -- margin height in pixels --
983 noresize (noresize) #IMPLIED -- allow users to resize frames? --
984 scrolling (yes|no|auto) auto -- scrollbar or none --
988 <!ELEMENT IFRAME - - (%flow;)* -- inline subwindow -->
990 %coreattrs; -- id, class, style, title --
991 longdesc %URI; #IMPLIED -- link to long description
992 (complements title) --
993 name CDATA #IMPLIED -- name of frame for targetting --
994 src %URI; #IMPLIED -- source of frame content --
995 frameborder (1|0) 1 -- request frame borders? --
996 marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
997 marginheight %Pixels; #IMPLIED -- margin height in pixels --
998 scrolling (yes|no|auto) auto -- scrollbar or none --
999 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
1000 height %Length; #IMPLIED -- frame height --
1001 width %Length; #IMPLIED -- frame width --
1004 <![ %HTML.Frameset; [
1005 <!ENTITY % noframes.content "(BODY) -(NOFRAMES)">
1008 <!ENTITY % noframes.content "(%flow;)*">
1010 <!ELEMENT NOFRAMES - - %noframes.content;
1011 -- alternate content container for non frame-based rendering -->
1013 %attrs; -- %coreattrs, %i18n, %events --
1016 <!--================ Document Head =======================================-->
1017 <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
1018 <!ENTITY % head.content "TITLE & ISINDEX? & BASE?">
1020 <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
1022 %i18n; -- lang, dir --
1023 profile %URI; #IMPLIED -- named dictionary of meta info --
1026 <!-- The TITLE element is not considered part of the flow of text.
1027 It should be displayed, for example as the page header or
1028 window title. Exactly one title is required per document.
1030 <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
1031 <!ATTLIST TITLE %i18n>
1033 <!ELEMENT ISINDEX - O EMPTY -- single line prompt -->
1035 %coreattrs; -- id, class, style, title --
1036 %i18n; -- lang, dir --
1037 prompt %Text; #IMPLIED -- prompt message -->
1039 <!ELEMENT BASE - O EMPTY -- document base URI -->
1041 href %URI; #IMPLIED -- URI that acts as base URI --
1042 target %FrameTarget; #IMPLIED -- render in this frame --
1045 <!ELEMENT META - O EMPTY -- generic metainformation -->
1047 %i18n; -- lang, dir, for use with content --
1048 http-equiv NAME #IMPLIED -- HTTP response header name --
1049 name NAME #IMPLIED -- metainformation name --
1050 content CDATA #REQUIRED -- associated information --
1051 scheme CDATA #IMPLIED -- select form of content --
1054 <!ELEMENT STYLE - - %StyleSheet -- style info -->
1056 %i18n; -- lang, dir, for use with title --
1057 type %ContentType; #REQUIRED -- content type of style language --
1058 media %MediaDesc; #IMPLIED -- designed for use with these media --
1059 title %Text; #IMPLIED -- advisory title --
1062 <!ELEMENT SCRIPT - - %Script; -- script statements -->
1064 charset %Charset; #IMPLIED -- char encoding of linked resource --
1065 type %ContentType; #REQUIRED -- content type of script language --
1066 language CDATA #IMPLIED -- predefined script language name --
1067 src %URI; #IMPLIED -- URI for an external script --
1068 defer (defer) #IMPLIED -- UA may defer execution of script --
1069 event CDATA #IMPLIED -- reserved for possible future use --
1070 for %URI; #IMPLIED -- reserved for possible future use --
1073 <!ELEMENT NOSCRIPT - - (%flow;)*
1074 -- alternate content container for non script-based rendering -->
1076 %attrs; -- %coreattrs, %i18n, %events --
1079 <!--================ Document Structure ==================================-->
1080 <!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
1082 <![ %HTML.Frameset; [
1083 <!ENTITY % html.content "HEAD, FRAMESET">
1086 <!ENTITY % html.content "HEAD, BODY">
1088 <!ELEMENT HTML O O (%html.content;) -- document root element -->
1090 %i18n; -- lang, dir --