2 This is the HTML 4.01 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 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: 2005/09/12 09:13:52 $
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.01 is available at:
22 http://www.w3.org/TR/1999/REC-html401-19991224
25 The HTML 4.01 specification includes additional
26 syntactic constraints that cannot be expressed within
30 <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.01 Transitional//EN"
33 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
34 "http://www.w3.org/TR/html4/loose.dtd">
44 The URI used as a system identifier with the public identifier allows
45 the user agent to download the DTD and entity sets as needed.
47 The FPI for the Strict HTML 4.01 DTD is:
49 "-//W3C//DTD HTML 4.01//EN"
51 This version of the strict DTD is:
53 http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd
55 Authors should use the Strict DTD unless they need the
56 presentation control for user agents that don't (adequately)
59 If you are writing a document that includes frames, use
62 "-//W3C//DTD HTML 4.01 Frameset//EN"
64 This version of the frameset DTD is:
66 http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd
68 Use the following (relative) URIs to refer to
69 the DTDs and entity definitions of this specification:
80 <!--================== Imported Names ====================================-->
81 <!-- Feature Switch for frameset documents -->
82 <!ENTITY % HTML.Frameset "IGNORE">
84 <!ENTITY % ContentType "CDATA"
85 -- media type, as per [RFC2045]
88 <!ENTITY % ContentTypes "CDATA"
89 -- comma-separated list of media types, as per [RFC2045]
92 <!ENTITY % Charset "CDATA"
93 -- a character encoding, as per [RFC2045]
96 <!ENTITY % Charsets "CDATA"
97 -- a space-separated list of character encodings, as per [RFC2045]
100 <!ENTITY % LanguageCode "NAME"
101 -- a language code, as per [RFC1766]
104 <!ENTITY % Character "CDATA"
105 -- a single character from [ISO10646]
108 <!ENTITY % LinkTypes "CDATA"
109 -- space-separated list of link types
112 <!ENTITY % MediaDesc "CDATA"
113 -- single or comma-separated list of media descriptors
116 <!ENTITY % URI "CDATA"
117 -- a Uniform Resource Identifier,
121 <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
124 <!ENTITY % Script "CDATA" -- script expression -->
126 <!ENTITY % StyleSheet "CDATA" -- style sheet data -->
128 <!ENTITY % FrameTarget "CDATA" -- render in this frame -->
131 <!ENTITY % Text "CDATA">
134 <!-- Parameter Entities -->
136 <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
138 <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
140 <!ENTITY % list "UL | OL | DIR | MENU">
142 <!ENTITY % preformatted "PRE">
144 <!ENTITY % Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->
146 <!-- There are also 16 widely known color names with their sRGB values:
148 Black = #000000 Green = #008000
149 Silver = #C0C0C0 Lime = #00FF00
150 Gray = #808080 Olive = #808000
151 White = #FFFFFF Yellow = #FFFF00
152 Maroon = #800000 Navy = #000080
153 Red = #FF0000 Blue = #0000FF
154 Purple = #800080 Teal = #008080
155 Fuchsia= #FF00FF Aqua = #00FFFF
158 <!ENTITY % bodycolors "
159 bgcolor %Color; #IMPLIED -- document background color --
160 text %Color; #IMPLIED -- document text color --
161 link %Color; #IMPLIED -- color of links --
162 vlink %Color; #IMPLIED -- color of visited links --
163 alink %Color; #IMPLIED -- color of selected links --
166 <!--================ Character mnemonic entities =========================-->
168 <!ENTITY % HTMLlat1 PUBLIC
169 "-//W3C//ENTITIES Latin1//EN//HTML"
173 <!ENTITY % HTMLsymbol PUBLIC
174 "-//W3C//ENTITIES Symbols//EN//HTML"
178 <!ENTITY % HTMLspecial PUBLIC
179 "-//W3C//ENTITIES Special//EN//HTML"
182 <!--=================== Generic Attributes ===============================-->
185 "id ID #IMPLIED -- document-wide unique id --
186 class CDATA #IMPLIED -- space-separated list of classes --
187 style %StyleSheet; #IMPLIED -- associated style info --
188 title %Text; #IMPLIED -- advisory title --"
192 "lang %LanguageCode; #IMPLIED -- language code --
193 dir (ltr|rtl) #IMPLIED -- direction for weak/neutral text --"
197 "onclick %Script; #IMPLIED -- a pointer button was clicked --
198 ondblclick %Script; #IMPLIED -- a pointer button was double clicked--
199 onmousedown %Script; #IMPLIED -- a pointer button was pressed down --
200 onmouseup %Script; #IMPLIED -- a pointer button was released --
201 onmouseover %Script; #IMPLIED -- a pointer was moved onto --
202 onmousemove %Script; #IMPLIED -- a pointer was moved within --
203 onmouseout %Script; #IMPLIED -- a pointer was moved away --
204 onkeypress %Script; #IMPLIED -- a key was pressed and released --
205 onkeydown %Script; #IMPLIED -- a key was pressed down --
206 onkeyup %Script; #IMPLIED -- a key was released --"
209 <!-- Reserved Feature Switch -->
210 <!ENTITY % HTML.Reserved "IGNORE">
212 <!-- The following attributes are reserved for possible future use -->
213 <![ %HTML.Reserved; [
215 "datasrc %URI; #IMPLIED -- a single or tabular Data Source --
216 datafld CDATA #IMPLIED -- the property or column name --
217 dataformatas (plaintext|html) plaintext -- text or html --"
221 <!ENTITY % reserved "">
223 <!ENTITY % attrs "%coreattrs; %i18n; %events;">
225 <!ENTITY % align "align (left|center|right|justify) #IMPLIED"
226 -- default is left for ltr paragraphs, right for rtl --
229 <!--=================== Text Markup ======================================-->
232 "TT | I | B | U | S | STRIKE | BIG | SMALL">
234 <!ENTITY % phrase "EM | STRONG | DFN | CODE |
235 SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
238 "A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |
239 MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">
241 <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
243 <!-- %inline; covers inline or "text-level" elements -->
244 <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
246 <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
247 <!ATTLIST (%fontstyle;|%phrase;)
248 %attrs; -- %coreattrs, %i18n, %events --
251 <!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
253 %attrs; -- %coreattrs, %i18n, %events --
256 <!ELEMENT SPAN - - (%inline;)* -- generic language/style container -->
258 %attrs; -- %coreattrs, %i18n, %events --
259 %reserved; -- reserved for possible future use --
262 <!ELEMENT BDO - - (%inline;)* -- I18N BiDi over-ride -->
264 %coreattrs; -- id, class, style, title --
265 lang %LanguageCode; #IMPLIED -- language code --
266 dir (ltr|rtl) #REQUIRED -- directionality --
269 <!ELEMENT BASEFONT - O EMPTY -- base font size -->
271 id ID #IMPLIED -- document-wide unique id --
272 size CDATA #REQUIRED -- base font size for FONT elements --
273 color %Color; #IMPLIED -- text color --
274 face CDATA #IMPLIED -- comma-separated list of font names --
277 <!ELEMENT FONT - - (%inline;)* -- local change to font -->
279 %coreattrs; -- id, class, style, title --
280 %i18n; -- lang, dir --
281 size CDATA #IMPLIED -- [+|-]nn e.g. size="+1", size="4" --
282 color %Color; #IMPLIED -- text color --
283 face CDATA #IMPLIED -- comma-separated list of font names --
286 <!ELEMENT BR - O EMPTY -- forced line break -->
288 %coreattrs; -- id, class, style, title --
289 clear (left|all|right|none) none -- control of text flow --
292 <!--================== HTML content models ===============================-->
295 HTML has two basic content models:
297 %inline; character level elements and text strings
298 %block; block-like elements e.g. paragraphs and lists
302 "P | %heading; | %list; | %preformatted; | DL | DIV | CENTER |
303 NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |
304 TABLE | FIELDSET | ADDRESS">
306 <!ENTITY % flow "%block; | %inline;">
308 <!--=================== Document Body ====================================-->
310 <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->
312 %attrs; -- %coreattrs, %i18n, %events --
313 onload %Script; #IMPLIED -- the document has been loaded --
314 onunload %Script; #IMPLIED -- the document has been removed --
315 background %URI; #IMPLIED -- texture tile for document
317 %bodycolors; -- bgcolor, text, link, vlink, alink --
320 <!ELEMENT ADDRESS - - ((%inline;)|P)* -- information on author -->
322 %attrs; -- %coreattrs, %i18n, %events --
325 <!ELEMENT DIV - - (%flow;)* -- generic language/style container -->
327 %attrs; -- %coreattrs, %i18n, %events --
328 %align; -- align, text alignment --
329 %reserved; -- reserved for possible future use --
332 <!ELEMENT CENTER - - (%flow;)* -- shorthand for DIV align=center -->
334 %attrs; -- %coreattrs, %i18n, %events --
337 <!--================== The Anchor Element ================================-->
339 <!ENTITY % Shape "(rect|circle|poly|default)">
340 <!ENTITY % Coords "CDATA" -- comma-separated list of lengths -->
342 <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
344 %attrs; -- %coreattrs, %i18n, %events --
345 charset %Charset; #IMPLIED -- char encoding of linked resource --
346 type %ContentType; #IMPLIED -- advisory content type --
347 name CDATA #IMPLIED -- named link end --
348 href %URI; #IMPLIED -- URI for linked resource --
349 hreflang %LanguageCode; #IMPLIED -- language code --
350 target %FrameTarget; #IMPLIED -- render in this frame --
351 rel %LinkTypes; #IMPLIED -- forward link types --
352 rev %LinkTypes; #IMPLIED -- reverse link types --
353 accesskey %Character; #IMPLIED -- accessibility key character --
354 shape %Shape; rect -- for use with client-side image maps --
355 coords %Coords; #IMPLIED -- for use with client-side image maps --
356 tabindex NUMBER #IMPLIED -- position in tabbing order --
357 onfocus %Script; #IMPLIED -- the element got the focus --
358 onblur %Script; #IMPLIED -- the element lost the focus --
361 <!--================== Client-side image maps ============================-->
363 <!-- These can be placed in the same document or grouped in a
364 separate document although this isn't yet widely supported -->
366 <!ELEMENT MAP - - ((%block;) | AREA)+ -- client-side image map -->
368 %attrs; -- %coreattrs, %i18n, %events --
369 name CDATA #REQUIRED -- for reference by usemap --
372 <!ELEMENT AREA - O EMPTY -- client-side image map area -->
374 %attrs; -- %coreattrs, %i18n, %events --
375 shape %Shape; rect -- controls interpretation of coords --
376 coords %Coords; #IMPLIED -- comma-separated list of lengths --
377 href %URI; #IMPLIED -- URI for linked resource --
378 target %FrameTarget; #IMPLIED -- render in this frame --
379 nohref (nohref) #IMPLIED -- this region has no action --
380 alt %Text; #REQUIRED -- short description --
381 tabindex NUMBER #IMPLIED -- position in tabbing order --
382 accesskey %Character; #IMPLIED -- accessibility key character --
383 onfocus %Script; #IMPLIED -- the element got the focus --
384 onblur %Script; #IMPLIED -- the element lost the focus --
387 <!--================== The LINK Element ==================================-->
390 Relationship values can be used in principle:
392 a) for document specific toolbars/menus when used
393 with the LINK element in document head e.g.
394 start, contents, previous, next, index, end, help
395 b) to link to a separate style sheet (rel=stylesheet)
396 c) to make a link to a script (rel=script)
397 d) by stylesheets to control how collections of
398 html nodes are rendered into printed documents
399 e) to make a link to a printable version of this document
400 e.g. a postscript or pdf version (rel=alternate media=print)
403 <!ELEMENT LINK - O EMPTY -- a media-independent link -->
405 %attrs; -- %coreattrs, %i18n, %events --
406 charset %Charset; #IMPLIED -- char encoding of linked resource --
407 href %URI; #IMPLIED -- URI for linked resource --
408 hreflang %LanguageCode; #IMPLIED -- language code --
409 type %ContentType; #IMPLIED -- advisory content type --
410 rel %LinkTypes; #IMPLIED -- forward link types --
411 rev %LinkTypes; #IMPLIED -- reverse link types --
412 media %MediaDesc; #IMPLIED -- for rendering on these media --
413 target %FrameTarget; #IMPLIED -- render in this frame --
416 <!--=================== Images ===========================================-->
418 <!-- Length defined in strict DTD for cellpadding/cellspacing -->
419 <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
420 <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
422 <![ %HTML.Frameset; [
423 <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
426 <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
428 <!ENTITY % IAlign "(top|middle|bottom|left|right)" -- center? -->
430 <!-- To avoid problems with text-only UAs as well as
431 to make image content understandable and navigable
432 to users of non-visual UAs, you need to provide
433 a description with ALT, and avoid server-side image maps -->
434 <!ELEMENT IMG - O EMPTY -- Embedded image -->
436 %attrs; -- %coreattrs, %i18n, %events --
437 src %URI; #REQUIRED -- URI of image to embed --
438 alt %Text; #REQUIRED -- short description --
439 longdesc %URI; #IMPLIED -- link to long description
441 name CDATA #IMPLIED -- name of image for scripting --
442 height %Length; #IMPLIED -- override height --
443 width %Length; #IMPLIED -- override width --
444 usemap %URI; #IMPLIED -- use client-side image map --
445 ismap (ismap) #IMPLIED -- use server-side image map --
446 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
447 border %Pixels; #IMPLIED -- link border width --
448 hspace %Pixels; #IMPLIED -- horizontal gutter --
449 vspace %Pixels; #IMPLIED -- vertical gutter --
452 <!-- USEMAP points to a MAP element which may be in this document
453 or an external document, although the latter is not widely supported -->
455 <!--==================== OBJECT ======================================-->
457 OBJECT is used to embed objects as part of HTML pages
458 PARAM elements should precede other content. SGML mixed content
459 model technicality precludes specifying this formally ...
462 <!ELEMENT OBJECT - - (PARAM | %flow;)*
463 -- generic embedded object -->
465 %attrs; -- %coreattrs, %i18n, %events --
466 declare (declare) #IMPLIED -- declare but don't instantiate flag --
467 classid %URI; #IMPLIED -- identifies an implementation --
468 codebase %URI; #IMPLIED -- base URI for classid, data, archive--
469 data %URI; #IMPLIED -- reference to object's data --
470 type %ContentType; #IMPLIED -- content type for data --
471 codetype %ContentType; #IMPLIED -- content type for code --
472 archive CDATA #IMPLIED -- space-separated list of URIs --
473 standby %Text; #IMPLIED -- message to show while loading --
474 height %Length; #IMPLIED -- override height --
475 width %Length; #IMPLIED -- override width --
476 usemap %URI; #IMPLIED -- use client-side image map --
477 name CDATA #IMPLIED -- submit as part of form --
478 tabindex NUMBER #IMPLIED -- position in tabbing order --
479 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
480 border %Pixels; #IMPLIED -- link border width --
481 hspace %Pixels; #IMPLIED -- horizontal gutter --
482 vspace %Pixels; #IMPLIED -- vertical gutter --
483 %reserved; -- reserved for possible future use --
486 <!ELEMENT PARAM - O EMPTY -- named property value -->
488 id ID #IMPLIED -- document-wide unique id --
489 name CDATA #REQUIRED -- property name --
490 value CDATA #IMPLIED -- property value --
491 valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
492 type %ContentType; #IMPLIED -- content type for value
493 when valuetype=ref --
496 <!--=================== Java APPLET ==================================-->
498 One of code or object attributes must be present.
499 Place PARAM elements before other content.
501 <!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet -->
503 %coreattrs; -- id, class, style, title --
504 codebase %URI; #IMPLIED -- optional base URI for applet --
505 archive CDATA #IMPLIED -- comma-separated archive list --
506 code CDATA #IMPLIED -- applet class file --
507 object CDATA #IMPLIED -- serialized applet file --
508 alt %Text; #IMPLIED -- short description --
509 name CDATA #IMPLIED -- allows applets to find each other --
510 width %Length; #REQUIRED -- initial width --
511 height %Length; #REQUIRED -- initial height --
512 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
513 hspace %Pixels; #IMPLIED -- horizontal gutter --
514 vspace %Pixels; #IMPLIED -- vertical gutter --
517 <!--=================== Horizontal Rule ==================================-->
519 <!ELEMENT HR - O EMPTY -- horizontal rule -->
521 %attrs; -- %coreattrs, %i18n, %events --
522 align (left|center|right) #IMPLIED
523 noshade (noshade) #IMPLIED
524 size %Pixels; #IMPLIED
525 width %Length; #IMPLIED
528 <!--=================== Paragraphs =======================================-->
530 <!ELEMENT P - O (%inline;)* -- paragraph -->
532 %attrs; -- %coreattrs, %i18n, %events --
533 %align; -- align, text alignment --
536 <!--=================== Headings =========================================-->
539 There are six levels of headings from H1 (the most important)
540 to H6 (the least important).
543 <!ELEMENT (%heading;) - - (%inline;)* -- heading -->
544 <!ATTLIST (%heading;)
545 %attrs; -- %coreattrs, %i18n, %events --
546 %align; -- align, text alignment --
549 <!--=================== Preformatted Text ================================-->
551 <!-- excludes markup for images and changes in font size -->
552 <!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">
554 <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
556 %attrs; -- %coreattrs, %i18n, %events --
557 width NUMBER #IMPLIED
560 <!--===================== Inline Quotes ==================================-->
562 <!ELEMENT Q - - (%inline;)* -- short inline quotation -->
564 %attrs; -- %coreattrs, %i18n, %events --
565 cite %URI; #IMPLIED -- URI for source document or msg --
568 <!--=================== Block-like Quotes ================================-->
570 <!ELEMENT BLOCKQUOTE - - (%flow;)* -- long quotation -->
572 %attrs; -- %coreattrs, %i18n, %events --
573 cite %URI; #IMPLIED -- URI for source document or msg --
576 <!--=================== Inserted/Deleted Text ============================-->
579 <!-- INS/DEL are handled by inclusion on BODY -->
580 <!ELEMENT (INS|DEL) - - (%flow;)* -- inserted text, deleted text -->
582 %attrs; -- %coreattrs, %i18n, %events --
583 cite %URI; #IMPLIED -- info on reason for change --
584 datetime %Datetime; #IMPLIED -- date and time of change --
587 <!--=================== Lists ============================================-->
589 <!-- definition lists - DT for term, DD for its definition -->
591 <!ELEMENT DL - - (DT|DD)+ -- definition list -->
593 %attrs; -- %coreattrs, %i18n, %events --
594 compact (compact) #IMPLIED -- reduced interitem spacing --
597 <!ELEMENT DT - O (%inline;)* -- definition term -->
598 <!ELEMENT DD - O (%flow;)* -- definition description -->
600 %attrs; -- %coreattrs, %i18n, %events --
603 <!-- Ordered lists (OL) Numbering style
605 1 arablic numbers 1, 2, 3, ...
606 a lower alpha a, b, c, ...
607 A upper alpha A, B, C, ...
608 i lower roman i, ii, iii, ...
609 I upper roman I, II, III, ...
611 The style is applied to the sequence number which by default
612 is reset to 1 for the first list item in an ordered list.
614 This can't be expressed directly in SGML due to case folding.
617 <!ENTITY % OLStyle "CDATA" -- constrained to: "(1|a|A|i|I)" -->
619 <!ELEMENT OL - - (LI)+ -- ordered list -->
621 %attrs; -- %coreattrs, %i18n, %events --
622 type %OLStyle; #IMPLIED -- numbering style --
623 compact (compact) #IMPLIED -- reduced interitem spacing --
624 start NUMBER #IMPLIED -- starting sequence number --
627 <!-- Unordered Lists (UL) bullet styles -->
628 <!ENTITY % ULStyle "(disc|square|circle)">
630 <!ELEMENT UL - - (LI)+ -- unordered list -->
632 %attrs; -- %coreattrs, %i18n, %events --
633 type %ULStyle; #IMPLIED -- bullet style --
634 compact (compact) #IMPLIED -- reduced interitem spacing --
637 <!ELEMENT (DIR|MENU) - - (LI)+ -(%block;) -- directory list, menu list -->
639 %attrs; -- %coreattrs, %i18n, %events --
640 compact (compact) #IMPLIED -- reduced interitem spacing --
643 %attrs; -- %coreattrs, %i18n, %events --
644 compact (compact) #IMPLIED -- reduced interitem spacing --
647 <!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle;|%OLStyle;)" -->
649 <!ELEMENT LI - O (%flow;)* -- list item -->
651 %attrs; -- %coreattrs, %i18n, %events --
652 type %LIStyle; #IMPLIED -- list item style --
653 value NUMBER #IMPLIED -- reset sequence number --
656 <!--================ Forms ===============================================-->
657 <!ELEMENT FORM - - (%flow;)* -(FORM) -- interactive form -->
659 %attrs; -- %coreattrs, %i18n, %events --
660 action %URI; #REQUIRED -- server-side form handler --
661 method (GET|POST) GET -- HTTP method used to submit the form--
662 enctype %ContentType; "application/x-www-form-urlencoded"
663 accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
664 name CDATA #IMPLIED -- name of form for scripting --
665 onsubmit %Script; #IMPLIED -- the form was submitted --
666 onreset %Script; #IMPLIED -- the form was reset --
667 target %FrameTarget; #IMPLIED -- render in this frame --
668 accept-charset %Charsets; #IMPLIED -- list of supported charsets --
671 <!-- Each label must not contain more than ONE field -->
672 <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
674 %attrs; -- %coreattrs, %i18n, %events --
675 for IDREF #IMPLIED -- matches field ID value --
676 accesskey %Character; #IMPLIED -- accessibility key character --
677 onfocus %Script; #IMPLIED -- the element got the focus --
678 onblur %Script; #IMPLIED -- the element lost the focus --
682 "(TEXT | PASSWORD | CHECKBOX |
683 RADIO | SUBMIT | RESET |
684 FILE | HIDDEN | IMAGE | BUTTON)"
687 <!-- attribute name required for all but submit and reset -->
688 <!ELEMENT INPUT - O EMPTY -- form control -->
690 %attrs; -- %coreattrs, %i18n, %events --
691 type %InputType; TEXT -- what kind of widget is needed --
692 name CDATA #IMPLIED -- submit as part of form --
693 value CDATA #IMPLIED -- Specify for radio buttons and checkboxes --
694 checked (checked) #IMPLIED -- for radio buttons and check boxes --
695 disabled (disabled) #IMPLIED -- unavailable in this context --
696 readonly (readonly) #IMPLIED -- for text and passwd --
697 size CDATA #IMPLIED -- specific to each type of field --
698 maxlength NUMBER #IMPLIED -- max chars for text fields --
699 src %URI; #IMPLIED -- for fields with images --
700 alt CDATA #IMPLIED -- short description --
701 usemap %URI; #IMPLIED -- use client-side image map --
702 ismap (ismap) #IMPLIED -- use server-side image map --
703 tabindex NUMBER #IMPLIED -- position in tabbing order --
704 accesskey %Character; #IMPLIED -- accessibility key character --
705 onfocus %Script; #IMPLIED -- the element got the focus --
706 onblur %Script; #IMPLIED -- the element lost the focus --
707 onselect %Script; #IMPLIED -- some text was selected --
708 onchange %Script; #IMPLIED -- the element value was changed --
709 accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
710 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
711 %reserved; -- reserved for possible future use --
714 <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
716 %attrs; -- %coreattrs, %i18n, %events --
717 name CDATA #IMPLIED -- field name --
718 size NUMBER #IMPLIED -- rows visible --
719 multiple (multiple) #IMPLIED -- default is single selection --
720 disabled (disabled) #IMPLIED -- unavailable in this context --
721 tabindex NUMBER #IMPLIED -- position in tabbing order --
722 onfocus %Script; #IMPLIED -- the element got the focus --
723 onblur %Script; #IMPLIED -- the element lost the focus --
724 onchange %Script; #IMPLIED -- the element value was changed --
725 %reserved; -- reserved for possible future use --
728 <!ELEMENT OPTGROUP - - (OPTION)+ -- option group -->
730 %attrs; -- %coreattrs, %i18n, %events --
731 disabled (disabled) #IMPLIED -- unavailable in this context --
732 label %Text; #REQUIRED -- for use in hierarchical menus --
735 <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
737 %attrs; -- %coreattrs, %i18n, %events --
738 selected (selected) #IMPLIED
739 disabled (disabled) #IMPLIED -- unavailable in this context --
740 label %Text; #IMPLIED -- for use in hierarchical menus --
741 value CDATA #IMPLIED -- defaults to element content --
744 <!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
746 %attrs; -- %coreattrs, %i18n, %events --
748 rows NUMBER #REQUIRED
749 cols NUMBER #REQUIRED
750 disabled (disabled) #IMPLIED -- unavailable in this context --
751 readonly (readonly) #IMPLIED
752 tabindex NUMBER #IMPLIED -- position in tabbing order --
753 accesskey %Character; #IMPLIED -- accessibility key character --
754 onfocus %Script; #IMPLIED -- the element got the focus --
755 onblur %Script; #IMPLIED -- the element lost the focus --
756 onselect %Script; #IMPLIED -- some text was selected --
757 onchange %Script; #IMPLIED -- the element value was changed --
758 %reserved; -- reserved for possible future use --
762 #PCDATA is to solve the mixed content problem,
763 per specification only whitespace is allowed there!
765 <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
767 %attrs; -- %coreattrs, %i18n, %events --
770 <!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
771 <!ENTITY % LAlign "(top|bottom|left|right)">
774 %attrs; -- %coreattrs, %i18n, %events --
775 accesskey %Character; #IMPLIED -- accessibility key character --
776 align %LAlign; #IMPLIED -- relative to fieldset --
780 (%flow;)* -(A|%formctrl;|FORM|ISINDEX|FIELDSET|IFRAME)
783 %attrs; -- %coreattrs, %i18n, %events --
785 value CDATA #IMPLIED -- sent to server when submitted --
786 type (button|submit|reset) submit -- for use as form button --
787 disabled (disabled) #IMPLIED -- unavailable in this context --
788 tabindex NUMBER #IMPLIED -- position in tabbing order --
789 accesskey %Character; #IMPLIED -- accessibility key character --
790 onfocus %Script; #IMPLIED -- the element got the focus --
791 onblur %Script; #IMPLIED -- the element lost the focus --
792 %reserved; -- reserved for possible future use --
795 <!--======================= Tables =======================================-->
797 <!-- IETF HTML table standard, see [RFC1942] -->
800 The BORDER attribute sets the thickness of the frame around the
801 table. The default units are screen pixels.
803 The FRAME attribute specifies which parts of the frame around
804 the table should be rendered. The values are not the same as
805 CALS to avoid a name clash with the VALIGN attribute.
807 The value "border" is included for backwards compatibility with
808 <TABLE BORDER> which yields frame=border and border=implied
809 For <TABLE BORDER=1> you get border=1 and frame=implied. In this
810 case, it is appropriate to treat this as frame=border for backwards
811 compatibility with deployed browsers.
813 <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
816 The RULES attribute defines which rules to draw between cells:
818 If RULES is absent then assume:
819 "none" if BORDER is absent or BORDER=0 otherwise "all"
822 <!ENTITY % TRules "(none | groups | rows | cols | all)">
824 <!-- horizontal placement of table relative to document -->
825 <!ENTITY % TAlign "(left|center|right)">
827 <!-- horizontal alignment attributes for cell contents -->
828 <!ENTITY % cellhalign
829 "align (left|center|right|justify|char) #IMPLIED
830 char %Character; #IMPLIED -- alignment char, e.g. char=':' --
831 charoff %Length; #IMPLIED -- offset for alignment char --"
834 <!-- vertical alignment attributes for cell contents -->
835 <!ENTITY % cellvalign
836 "valign (top|middle|bottom|baseline) #IMPLIED"
840 (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
841 <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
842 <!ELEMENT THEAD - O (TR)+ -- table header -->
843 <!ELEMENT TFOOT - O (TR)+ -- table footer -->
844 <!ELEMENT TBODY O O (TR)+ -- table body -->
845 <!ELEMENT COLGROUP - O (COL)* -- table column group -->
846 <!ELEMENT COL - O EMPTY -- table column -->
847 <!ELEMENT TR - O (TH|TD)+ -- table row -->
848 <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->
850 <!ATTLIST TABLE -- table element --
851 %attrs; -- %coreattrs, %i18n, %events --
852 summary %Text; #IMPLIED -- purpose/structure for speech output--
853 width %Length; #IMPLIED -- table width --
854 border %Pixels; #IMPLIED -- controls frame width around table --
855 frame %TFrame; #IMPLIED -- which parts of frame to render --
856 rules %TRules; #IMPLIED -- rulings between rows and cols --
857 cellspacing %Length; #IMPLIED -- spacing between cells --
858 cellpadding %Length; #IMPLIED -- spacing within cells --
859 align %TAlign; #IMPLIED -- table position relative to window --
860 bgcolor %Color; #IMPLIED -- background color for cells --
861 %reserved; -- reserved for possible future use --
862 datapagesize CDATA #IMPLIED -- reserved for possible future use --
865 <!ENTITY % CAlign "(top|bottom|left|right)">
868 %attrs; -- %coreattrs, %i18n, %events --
869 align %CAlign; #IMPLIED -- relative to table --
873 COLGROUP groups a set of COL elements. It allows you to group
874 several semantically related columns together.
877 %attrs; -- %coreattrs, %i18n, %events --
878 span NUMBER 1 -- default number of columns in group --
879 width %MultiLength; #IMPLIED -- default width for enclosed COLs --
880 %cellhalign; -- horizontal alignment in cells --
881 %cellvalign; -- vertical alignment in cells --
885 COL elements define the alignment properties for cells in
888 The WIDTH attribute specifies the width of the columns, e.g.
890 width=64 width in screen pixels
891 width=0.5* relative width of 0.5
893 The SPAN attribute causes the attributes of one
894 COL element to apply to more than one column.
896 <!ATTLIST COL -- column groups and properties --
897 %attrs; -- %coreattrs, %i18n, %events --
898 span NUMBER 1 -- COL attributes affect N columns --
899 width %MultiLength; #IMPLIED -- column width specification --
900 %cellhalign; -- horizontal alignment in cells --
901 %cellvalign; -- vertical alignment in cells --
905 Use THEAD to duplicate headers when breaking table
906 across page boundaries, or for static headers when
907 TBODY sections are rendered in scrolling panel.
909 Use TFOOT to duplicate footers when breaking table
910 across page boundaries, or for static footers when
911 TBODY sections are rendered in scrolling panel.
913 Use multiple TBODY sections when rules are needed
914 between groups of table rows.
916 <!ATTLIST (THEAD|TBODY|TFOOT) -- table section --
917 %attrs; -- %coreattrs, %i18n, %events --
918 %cellhalign; -- horizontal alignment in cells --
919 %cellvalign; -- vertical alignment in cells --
922 <!ATTLIST TR -- table row --
923 %attrs; -- %coreattrs, %i18n, %events --
924 %cellhalign; -- horizontal alignment in cells --
925 %cellvalign; -- vertical alignment in cells --
926 bgcolor %Color; #IMPLIED -- background color for row --
930 <!-- Scope is simpler than headers attribute for common tables -->
931 <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
933 <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
934 <!ATTLIST (TH|TD) -- header or data cell --
935 %attrs; -- %coreattrs, %i18n, %events --
936 abbr %Text; #IMPLIED -- abbreviation for header cell --
937 axis CDATA #IMPLIED -- comma-separated list of related headers--
938 headers IDREFS #IMPLIED -- list of id's for header cells --
939 scope %Scope; #IMPLIED -- scope covered by header cells --
940 rowspan NUMBER 1 -- number of rows spanned by cell --
941 colspan NUMBER 1 -- number of cols spanned by cell --
942 %cellhalign; -- horizontal alignment in cells --
943 %cellvalign; -- vertical alignment in cells --
944 nowrap (nowrap) #IMPLIED -- suppress word wrap --
945 bgcolor %Color; #IMPLIED -- cell background color --
946 width %Length; #IMPLIED -- width for cell --
947 height %Length; #IMPLIED -- height for cell --
950 <!--================== Document Frames ===================================-->
953 The content model for HTML documents depends on whether the HEAD is
954 followed by a FRAMESET or BODY element. The widespread omission of
955 the BODY start tag makes it impractical to define the content model
956 without the use of a marked section.
959 <![ %HTML.Frameset; [
960 <!ELEMENT FRAMESET - - ((FRAMESET|FRAME)+ & NOFRAMES?) -- window subdivision-->
962 %coreattrs; -- id, class, style, title --
963 rows %MultiLengths; #IMPLIED -- list of lengths,
964 default: 100% (1 row) --
965 cols %MultiLengths; #IMPLIED -- list of lengths,
966 default: 100% (1 col) --
967 onload %Script; #IMPLIED -- all the frames have been loaded --
968 onunload %Script; #IMPLIED -- all the frames have been removed --
972 <![ %HTML.Frameset; [
973 <!-- reserved frame names start with "_" otherwise starts with letter -->
974 <!ELEMENT FRAME - O EMPTY -- subwindow -->
976 %coreattrs; -- id, class, style, title --
977 longdesc %URI; #IMPLIED -- link to long description
978 (complements title) --
979 name CDATA #IMPLIED -- name of frame for targetting --
980 src %URI; #IMPLIED -- source of frame content --
981 frameborder (1|0) 1 -- request frame borders? --
982 marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
983 marginheight %Pixels; #IMPLIED -- margin height in pixels --
984 noresize (noresize) #IMPLIED -- allow users to resize frames? --
985 scrolling (yes|no|auto) auto -- scrollbar or none --
989 <!ELEMENT IFRAME - - (%flow;)* -- inline subwindow -->
991 %coreattrs; -- id, class, style, title --
992 longdesc %URI; #IMPLIED -- link to long description
993 (complements title) --
994 name CDATA #IMPLIED -- name of frame for targetting --
995 src %URI; #IMPLIED -- source of frame content --
996 frameborder (1|0) 1 -- request frame borders? --
997 marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
998 marginheight %Pixels; #IMPLIED -- margin height in pixels --
999 scrolling (yes|no|auto) auto -- scrollbar or none --
1000 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
1001 height %Length; #IMPLIED -- frame height --
1002 width %Length; #IMPLIED -- frame width --
1005 <![ %HTML.Frameset; [
1006 <!ENTITY % noframes.content "(BODY) -(NOFRAMES)">
1009 <!ENTITY % noframes.content "(%flow;)*">
1011 <!ELEMENT NOFRAMES - - %noframes.content;
1012 -- alternate content container for non frame-based rendering -->
1014 %attrs; -- %coreattrs, %i18n, %events --
1017 <!--================ Document Head =======================================-->
1018 <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
1019 <!ENTITY % head.content "TITLE & ISINDEX? & BASE?">
1021 <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
1023 %i18n; -- lang, dir --
1024 profile %URI; #IMPLIED -- named dictionary of meta info --
1027 <!-- The TITLE element is not considered part of the flow of text.
1028 It should be displayed, for example as the page header or
1029 window title. Exactly one title is required per document.
1031 <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
1032 <!ATTLIST TITLE %i18n>
1034 <!ELEMENT ISINDEX - O EMPTY -- single line prompt -->
1036 %coreattrs; -- id, class, style, title --
1037 %i18n; -- lang, dir --
1038 prompt %Text; #IMPLIED -- prompt message -->
1040 <!ELEMENT BASE - O EMPTY -- document base URI -->
1042 href %URI; #IMPLIED -- URI that acts as base URI --
1043 target %FrameTarget; #IMPLIED -- render in this frame --
1046 <!ELEMENT META - O EMPTY -- generic metainformation -->
1048 %i18n; -- lang, dir, for use with content --
1049 http-equiv NAME #IMPLIED -- HTTP response header name --
1050 name NAME #IMPLIED -- metainformation name --
1051 content CDATA #REQUIRED -- associated information --
1052 scheme CDATA #IMPLIED -- select form of content --
1055 <!ELEMENT STYLE - - %StyleSheet -- style info -->
1057 %i18n; -- lang, dir, for use with title --
1058 type %ContentType; #REQUIRED -- content type of style language --
1059 media %MediaDesc; #IMPLIED -- designed for use with these media --
1060 title %Text; #IMPLIED -- advisory title --
1063 <!ELEMENT SCRIPT - - %Script; -- script statements -->
1065 charset %Charset; #IMPLIED -- char encoding of linked resource --
1066 type %ContentType; #REQUIRED -- content type of script language --
1067 language CDATA #IMPLIED -- predefined script language name --
1068 src %URI; #IMPLIED -- URI for an external script --
1069 defer (defer) #IMPLIED -- UA may defer execution of script --
1070 event CDATA #IMPLIED -- reserved for possible future use --
1071 for %URI; #IMPLIED -- reserved for possible future use --
1074 <!ELEMENT NOSCRIPT - - (%flow;)*
1075 -- alternate content container for non script-based rendering -->
1077 %attrs; -- %coreattrs, %i18n, %events --
1080 <!--================ Document Structure ==================================-->
1081 <!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
1083 <![ %HTML.Frameset; [
1084 <!ENTITY % html.content "HEAD, FRAMESET">
1087 <!ENTITY % html.content "HEAD, BODY">
1089 <!ELEMENT HTML O O (%html.content;) -- document root element -->
1091 %i18n; -- lang, dir --