Debian Codegraph @

share/catalogue/www.w3.org/MarkUp/DTD/html4-rdfa-1.dtd

raw
1 <!--
2 This is the HTML 4.01 + RDFa 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.
7
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.
12
13 Draft: $Date: 2009/05/24 20:16:23 $
14
15 Editor:
16 Shane McCarron <[email protected]>
17
18 Original Authors:
19 Dave Raggett <[email protected]>
20 Arnaud Le Hors <[email protected]>
21 Ian Jacobs <[email protected]>
22
23 Further information about RDFa is available at:
24 http://www.w3.org/TR/rdfa-syntax
25
26 Further information about HTML 4.01 is available at:
27
28 http://www.w3.org/TR/1999/REC-html401-19991224
29
30 And further information about RDFa is available at:
31
32 http://www.w3.org/TR/rdfa-syntax
33
34 The HTML 4.01 specification includes additional
35 syntactic constraints that cannot be expressed within
36 the DTDs.
37
38 -->
39 <!ENTITY % HTML.Version "HTML4+RDFa 1.0"
40 -- Typical usage:
41
42 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.0//EN"
43 "http://www.w3.org/MarkUp/DTD/html401-rdfa-1.dtd">
44 <html>
45 <head>
46 ...
47 </head>
48 <body>
49 ...
50 </body>
51 </html>
52
53 The URI used as a system identifier with the public identifier allows
54 the user agent to download the DTD and entity sets as needed.
55
56 -->
57
58 <!--================== Imported Names ====================================-->
59 <!-- Feature Switch for frameset documents -->
60 <!ENTITY % HTML.Frameset "IGNORE">
61
62 <!ENTITY % ContentType "CDATA"
63 -- media type, as per [RFC2045]
64 -->
65
66 <!ENTITY % ContentTypes "CDATA"
67 -- comma-separated list of media types, as per [RFC2045]
68 -->
69
70 <!ENTITY % Charset "CDATA"
71 -- a character encoding, as per [RFC2045]
72 -->
73
74 <!ENTITY % Charsets "CDATA"
75 -- a space-separated list of character encodings, as per [RFC2045]
76 -->
77
78 <!ENTITY % LanguageCode "NAME"
79 -- a language code, as per [RFC1766]
80 -->
81
82 <!ENTITY % Character "CDATA"
83 -- a single character from [ISO10646]
84 -->
85
86 <!ENTITY % LinkTypes "CDATA"
87 -- space-separated list of link types
88 -->
89
90 <!ENTITY % MediaDesc "CDATA"
91 -- single or comma-separated list of media descriptors
92 -->
93
94 <!ENTITY % URI "CDATA"
95 -- a Uniform Resource Identifier,
96 see [URI]
97 -->
98
99 <!ENTITY % Datetime "CDATA" -- date and time information. ISO date format -->
100
101
102 <!ENTITY % Script "CDATA" -- script expression -->
103
104 <!ENTITY % StyleSheet "CDATA" -- style sheet data -->
105
106 <!ENTITY % FrameTarget "CDATA" -- render in this frame -->
107
108
109 <!ENTITY % Text "CDATA">
110
111
112 <!-- Parameter Entities -->
113
114 <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
115
116 <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
117
118 <!ENTITY % list "UL | OL | DIR | MENU">
119
120 <!ENTITY % preformatted "PRE">
121
122 <!ENTITY % Color "CDATA" -- a color using sRGB: #RRGGBB as Hex values -->
123
124 <!-- There are also 16 widely known color names with their sRGB values:
125
126 Black = #000000 Green = #008000
127 Silver = #C0C0C0 Lime = #00FF00
128 Gray = #808080 Olive = #808000
129 White = #FFFFFF Yellow = #FFFF00
130 Maroon = #800000 Navy = #000080
131 Red = #FF0000 Blue = #0000FF
132 Purple = #800080 Teal = #008080
133 Fuchsia= #FF00FF Aqua = #00FFFF
134 -->
135
136 <!ENTITY % bodycolors "
137 bgcolor %Color; #IMPLIED -- document background color --
138 text %Color; #IMPLIED -- document text color --
139 link %Color; #IMPLIED -- color of links --
140 vlink %Color; #IMPLIED -- color of visited links --
141 alink %Color; #IMPLIED -- color of selected links --
142 ">
143
144 <!--================ Character mnemonic entities =========================-->
145
146 <!ENTITY % HTMLlat1 PUBLIC
147 "-//W3C//ENTITIES Latin1//EN//HTML"
148 "http://www.w3.org/TR/html401/HTMLlat1.ent">
149 %HTMLlat1;
150
151 <!ENTITY % HTMLsymbol PUBLIC
152 "-//W3C//ENTITIES Symbols//EN//HTML"
153 "http://www.w3.org/TR/html401/HTMLsymbol.ent">
154 %HTMLsymbol;
155
156 <!ENTITY % HTMLspecial PUBLIC
157 "-//W3C//ENTITIES Special//EN//HTML"
158 "http://www.w3.org/TR/html401/HTMLspecial.ent">
159 %HTMLspecial;
160 <!--=================== Generic Attributes ===============================-->
161
162 <!ENTITY % coreattrs
163 "id ID #IMPLIED -- document-wide unique id --
164 class CDATA #IMPLIED -- space-separated list of classes --
165 style %StyleSheet; #IMPLIED -- associated style info --
166 title %Text; #IMPLIED -- advisory title --"
167 >
168
169 <!ENTITY % i18n
170 "lang %LanguageCode; #IMPLIED -- language code --
171 xml:lang %LanguageCode; #IMPLIED
172 dir (ltr|rtl) #IMPLIED -- direction for weak/neutral text --"
173 >
174
175 <!ENTITY % events
176 "onclick %Script; #IMPLIED -- a pointer button was clicked --
177 ondblclick %Script; #IMPLIED -- a pointer button was double clicked--
178 onmousedown %Script; #IMPLIED -- a pointer button was pressed down --
179 onmouseup %Script; #IMPLIED -- a pointer button was released --
180 onmouseover %Script; #IMPLIED -- a pointer was moved onto --
181 onmousemove %Script; #IMPLIED -- a pointer was moved within --
182 onmouseout %Script; #IMPLIED -- a pointer was moved away --
183 onkeypress %Script; #IMPLIED -- a key was pressed and released --
184 onkeydown %Script; #IMPLIED -- a key was pressed down --
185 onkeyup %Script; #IMPLIED -- a key was released --"
186 >
187
188 <!ENTITY % CURIE "CDATA" >
189 <!ENTITY % CURIEs "CDATA" >
190 <!ENTITY % URIorSafeCURIE "CDATA" >
191
192 <!ENTITY % metainformation
193 "about %URIorSafeCURIE; #IMPLIED
194 content CDATA #IMPLIED
195 datatype %CURIE; #IMPLIED
196 href %URI; #IMPLIED -- URI for linked resource --
197 typeof %CURIEs; #IMPLIED
198 property %CURIEs; #IMPLIED
199 rel %CURIEs; #IMPLIED
200 rev %CURIEs; #IMPLIED
201 resource %URIorSafeCURIE; #IMPLIED"
202 >
203
204 <!-- Reserved Feature Switch -->
205 <!ENTITY % HTML.Reserved "IGNORE">
206
207 <!-- The following attributes are reserved for possible future use -->
208 <![ %HTML.Reserved; [
209 <!ENTITY % reserved
210 "datasrc %URI; #IMPLIED -- a single or tabular Data Source --
211 datafld CDATA #IMPLIED -- the property or column name --
212 dataformatas (plaintext|html) plaintext -- text or html --"
213 >
214 ]]>
215
216 <!ENTITY % reserved "">
217
218 <!ENTITY % attrs "%coreattrs; %i18n; %events; %metainformation;">
219
220 <!ENTITY % align "align (left|center|right|justify) #IMPLIED"
221 -- default is left for ltr paragraphs, right for rtl --
222 >
223
224 <!--=================== Text Markup ======================================-->
225
226 <!ENTITY % fontstyle
227 "TT | I | B | U | S | STRIKE | BIG | SMALL">
228
229 <!ENTITY % phrase "EM | STRONG | DFN | CODE |
230 SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
231
232 <!ENTITY % special
233 "A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |
234 MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">
235
236 <!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
237
238 <!-- %inline; covers inline or "text-level" elements -->
239 <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl; ">
240
241 <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
242 <!ATTLIST (%fontstyle;|%phrase;)
243 %attrs; -- %coreattrs, %i18n, %events --
244 >
245
246 <!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
247 <!ATTLIST (SUB|SUP)
248 %attrs; -- %coreattrs, %i18n, %events --
249 >
250
251 <!ELEMENT SPAN - - (%inline;)* -- generic language/style container -->
252 <!ATTLIST SPAN
253 %attrs; -- %coreattrs, %i18n, %events --
254 %reserved; -- reserved for possible future use --
255 >
256
257 <!ELEMENT BDO - - (%inline;)* -- I18N BiDi over-ride -->
258 <!ATTLIST BDO
259 %coreattrs; -- id, class, style, title --
260 lang %LanguageCode; #IMPLIED -- language code --
261 dir (ltr|rtl) #REQUIRED -- directionality --
262 >
263
264 <!ELEMENT BASEFONT - O EMPTY -- base font size -->
265 <!ATTLIST BASEFONT
266 id ID #IMPLIED -- document-wide unique id --
267 size CDATA #REQUIRED -- base font size for FONT elements --
268 color %Color; #IMPLIED -- text color --
269 face CDATA #IMPLIED -- comma-separated list of font names --
270 >
271
272 <!ELEMENT FONT - - (%inline;)* -- local change to font -->
273 <!ATTLIST FONT
274 %coreattrs; -- id, class, style, title --
275 %i18n; -- lang, dir --
276 size CDATA #IMPLIED -- [+|-]nn e.g. size="+1", size="4" --
277 color %Color; #IMPLIED -- text color --
278 face CDATA #IMPLIED -- comma-separated list of font names --
279 >
280
281 <!ELEMENT BR - O EMPTY -- forced line break -->
282 <!ATTLIST BR
283 %coreattrs; -- id, class, style, title --
284 clear (left|all|right|none) none -- control of text flow --
285 >
286
287 <!--================== HTML content models ===============================-->
288
289 <!--
290 HTML has two basic content models:
291
292 %inline; character level elements and text strings
293 %block; block-like elements e.g. paragraphs and lists
294 -->
295
296 <!ENTITY % block
297 "P | %heading; | %list; | %preformatted; | DL | DIV | CENTER |
298 NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |
299 TABLE | FIELDSET | ADDRESS">
300
301 <!ENTITY % flow "%block; | %inline;">
302
303 <!--=================== Document Body ====================================-->
304
305 <!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->
306 <!ATTLIST BODY
307 %attrs; -- %coreattrs, %i18n, %events --
308 onload %Script; #IMPLIED -- the document has been loaded --
309 onunload %Script; #IMPLIED -- the document has been removed --
310 background %URI; #IMPLIED -- texture tile for document
311 background --
312 %bodycolors; -- bgcolor, text, link, vlink, alink --
313 >
314
315 <!ELEMENT ADDRESS - - ((%inline;)|P)* -- information on author -->
316 <!ATTLIST ADDRESS
317 %attrs; -- %coreattrs, %i18n, %events --
318 >
319
320 <!ELEMENT DIV - - (%flow;)* -- generic language/style container -->
321 <!ATTLIST DIV
322 %attrs; -- %coreattrs, %i18n, %events --
323 %align; -- align, text alignment --
324 %reserved; -- reserved for possible future use --
325 >
326
327 <!ELEMENT CENTER - - (%flow;)* -- shorthand for DIV align=center -->
328 <!ATTLIST CENTER
329 %attrs; -- %coreattrs, %i18n, %events --
330 >
331
332 <!--================== The Anchor Element ================================-->
333
334 <!ENTITY % Shape "(rect|circle|poly|default)">
335 <!ENTITY % Coords "CDATA" -- comma-separated list of lengths -->
336
337 <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
338 <!ATTLIST A
339 %attrs; -- %coreattrs, %i18n, %events --
340 charset %Charset; #IMPLIED -- char encoding of linked resource --
341 type %ContentType; #IMPLIED -- advisory content type --
342 name CDATA #IMPLIED -- named link end --
343 hreflang %LanguageCode; #IMPLIED -- language code --
344 target %FrameTarget; #IMPLIED -- render in this frame --
345 accesskey %Character; #IMPLIED -- accessibility key character --
346 shape %Shape; rect -- for use with client-side image maps --
347 coords %Coords; #IMPLIED -- for use with client-side image maps --
348 tabindex NUMBER #IMPLIED -- position in tabbing order --
349 onfocus %Script; #IMPLIED -- the element got the focus --
350 onblur %Script; #IMPLIED -- the element lost the focus --
351 >
352
353 <!--================== Client-side image maps ============================-->
354
355 <!-- These can be placed in the same document or grouped in a
356 separate document although this isn't yet widely supported -->
357
358 <!ELEMENT MAP - - ((%block;) | AREA)+ -- client-side image map -->
359 <!ATTLIST MAP
360 %attrs; -- %coreattrs, %i18n, %events --
361 name CDATA #REQUIRED -- for reference by usemap --
362 >
363
364 <!ELEMENT AREA - O EMPTY -- client-side image map area -->
365 <!ATTLIST AREA
366 %attrs; -- %coreattrs, %i18n, %events --
367 shape %Shape; rect -- controls interpretation of coords --
368 coords %Coords; #IMPLIED -- comma-separated list of lengths --
369 target %FrameTarget; #IMPLIED -- render in this frame --
370 nohref (nohref) #IMPLIED -- this region has no action --
371 alt %Text; #REQUIRED -- short description --
372 tabindex NUMBER #IMPLIED -- position in tabbing order --
373 accesskey %Character; #IMPLIED -- accessibility key character --
374 onfocus %Script; #IMPLIED -- the element got the focus --
375 onblur %Script; #IMPLIED -- the element lost the focus --
376 >
377
378 <!--================== The LINK Element ==================================-->
379
380 <!--
381 Relationship values can be used in principle:
382
383 a) for document specific toolbars/menus when used
384 with the LINK element in document head e.g.
385 start, contents, previous, next, index, end, help
386 b) to link to a separate style sheet (rel=stylesheet)
387 c) to make a link to a script (rel=script)
388 d) by stylesheets to control how collections of
389 html nodes are rendered into printed documents
390 e) to make a link to a printable version of this document
391 e.g. a postscript or pdf version (rel=alternate media=print)
392 -->
393
394 <!ELEMENT LINK - O EMPTY -- a media-independent link -->
395 <!ATTLIST LINK
396 %attrs; -- %coreattrs, %i18n, %events --
397 charset %Charset; #IMPLIED -- char encoding of linked resource --
398 hreflang %LanguageCode; #IMPLIED -- language code --
399 type %ContentType; #IMPLIED -- advisory content type --
400 media %MediaDesc; #IMPLIED -- for rendering on these media --
401 target %FrameTarget; #IMPLIED -- render in this frame --
402 >
403
404 <!--=================== Images ===========================================-->
405
406 <!-- Length defined in strict DTD for cellpadding/cellspacing -->
407 <!ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length -->
408 <!ENTITY % MultiLength "CDATA" -- pixel, percentage, or relative -->
409
410 <![ %HTML.Frameset; [
411 <!ENTITY % MultiLengths "CDATA" -- comma-separated list of MultiLength -->
412 ]]>
413
414 <!ENTITY % Pixels "CDATA" -- integer representing length in pixels -->
415
416 <!ENTITY % IAlign "(top|middle|bottom|left|right)" -- center? -->
417
418 <!-- To avoid problems with text-only UAs as well as
419 to make image content understandable and navigable
420 to users of non-visual UAs, you need to provide
421 a description with ALT, and avoid server-side image maps -->
422 <!ELEMENT IMG - O EMPTY -- Embedded image -->
423 <!ATTLIST IMG
424 %attrs; -- %coreattrs, %i18n, %events --
425 src %URI; #REQUIRED -- URI of image to embed --
426 alt %Text; #REQUIRED -- short description --
427 longdesc %URI; #IMPLIED -- link to long description
428 (complements alt) --
429 name CDATA #IMPLIED -- name of image for scripting --
430 height %Length; #IMPLIED -- override height --
431 width %Length; #IMPLIED -- override width --
432 usemap %URI; #IMPLIED -- use client-side image map --
433 ismap (ismap) #IMPLIED -- use server-side image map --
434 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
435 border %Pixels; #IMPLIED -- link border width --
436 hspace %Pixels; #IMPLIED -- horizontal gutter --
437 vspace %Pixels; #IMPLIED -- vertical gutter --
438 >
439
440 <!-- USEMAP points to a MAP element which may be in this document
441 or an external document, although the latter is not widely supported -->
442
443 <!--==================== OBJECT ======================================-->
444 <!--
445 OBJECT is used to embed objects as part of HTML pages
446 PARAM elements should precede other content. SGML mixed content
447 model technicality precludes specifying this formally ...
448 -->
449
450 <!ELEMENT OBJECT - - (PARAM | %flow;)*
451 -- generic embedded object -->
452 <!ATTLIST OBJECT
453 %attrs; -- %coreattrs, %i18n, %events --
454 declare (declare) #IMPLIED -- declare but don't instantiate flag --
455 classid %URI; #IMPLIED -- identifies an implementation --
456 codebase %URI; #IMPLIED -- base URI for classid, data, archive--
457 data %URI; #IMPLIED -- reference to object's data --
458 type %ContentType; #IMPLIED -- content type for data --
459 codetype %ContentType; #IMPLIED -- content type for code --
460 archive CDATA #IMPLIED -- space-separated list of URIs --
461 standby %Text; #IMPLIED -- message to show while loading --
462 height %Length; #IMPLIED -- override height --
463 width %Length; #IMPLIED -- override width --
464 usemap %URI; #IMPLIED -- use client-side image map --
465 name CDATA #IMPLIED -- submit as part of form --
466 tabindex NUMBER #IMPLIED -- position in tabbing order --
467 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
468 border %Pixels; #IMPLIED -- link border width --
469 hspace %Pixels; #IMPLIED -- horizontal gutter --
470 vspace %Pixels; #IMPLIED -- vertical gutter --
471 %reserved; -- reserved for possible future use --
472 >
473
474 <!ELEMENT PARAM - O EMPTY -- named property value -->
475 <!ATTLIST PARAM
476 id ID #IMPLIED -- document-wide unique id --
477 %metainformation; -- metadata attributes --
478 name CDATA #REQUIRED -- property name --
479 value CDATA #IMPLIED -- property value --
480 valuetype (DATA|REF|OBJECT) DATA -- How to interpret value --
481 type %ContentType; #IMPLIED -- content type for value
482 when valuetype=ref --
483 >
484
485 <!--=================== Java APPLET ==================================-->
486 <!--
487 One of code or object attributes must be present.
488 Place PARAM elements before other content.
489 -->
490 <!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet -->
491 <!ATTLIST APPLET
492 %coreattrs; -- id, class, style, title --
493 %metainformation; -- metadata attributes --
494 codebase %URI; #IMPLIED -- optional base URI for applet --
495 archive CDATA #IMPLIED -- comma-separated archive list --
496 code CDATA #IMPLIED -- applet class file --
497 object CDATA #IMPLIED -- serialized applet file --
498 alt %Text; #IMPLIED -- short description --
499 name CDATA #IMPLIED -- allows applets to find each other --
500 width %Length; #REQUIRED -- initial width --
501 height %Length; #REQUIRED -- initial height --
502 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
503 hspace %Pixels; #IMPLIED -- horizontal gutter --
504 vspace %Pixels; #IMPLIED -- vertical gutter --
505 >
506
507 <!--=================== Horizontal Rule ==================================-->
508
509 <!ELEMENT HR - O EMPTY -- horizontal rule -->
510 <!ATTLIST HR
511 %attrs; -- %coreattrs, %i18n, %events --
512 align (left|center|right) #IMPLIED
513 noshade (noshade) #IMPLIED
514 size %Pixels; #IMPLIED
515 width %Length; #IMPLIED
516 >
517
518 <!--=================== Paragraphs =======================================-->
519
520 <!ELEMENT P - O (%inline;)* -- paragraph -->
521 <!ATTLIST P
522 %attrs; -- %coreattrs, %i18n, %events --
523 %align; -- align, text alignment --
524 >
525
526 <!--=================== Headings =========================================-->
527
528 <!--
529 There are six levels of headings from H1 (the most important)
530 to H6 (the least important).
531 -->
532
533 <!ELEMENT (%heading;) - - (%inline;)* -- heading -->
534 <!ATTLIST (%heading;)
535 %attrs; -- %coreattrs, %i18n, %events --
536 %align; -- align, text alignment --
537 >
538
539 <!--=================== Preformatted Text ================================-->
540
541 <!-- excludes markup for images and changes in font size -->
542 <!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">
543
544 <!ELEMENT PRE - - (%inline;)* -(%pre.exclusion;) -- preformatted text -->
545 <!ATTLIST PRE
546 %attrs; -- %coreattrs, %i18n, %events --
547 width NUMBER #IMPLIED
548 >
549
550 <!--===================== Inline Quotes ==================================-->
551
552 <!ELEMENT Q - - (%inline;)* -- short inline quotation -->
553 <!ATTLIST Q
554 %attrs; -- %coreattrs, %i18n, %events --
555 cite %URI; #IMPLIED -- URI for source document or msg --
556 >
557
558 <!--=================== Block-like Quotes ================================-->
559
560 <!ELEMENT BLOCKQUOTE - - (%flow;)* -- long quotation -->
561 <!ATTLIST BLOCKQUOTE
562 %attrs; -- %coreattrs, %i18n, %events --
563 cite %URI; #IMPLIED -- URI for source document or msg --
564 >
565
566 <!--=================== Inserted/Deleted Text ============================-->
567
568
569 <!-- INS/DEL are handled by inclusion on BODY -->
570 <!ELEMENT (INS|DEL) - - (%flow;)* -- inserted text, deleted text -->
571 <!ATTLIST (INS|DEL)
572 %attrs; -- %coreattrs, %i18n, %events --
573 cite %URI; #IMPLIED -- info on reason for change --
574 datetime %Datetime; #IMPLIED -- date and time of change --
575 >
576
577 <!--=================== Lists ============================================-->
578
579 <!-- definition lists - DT for term, DD for its definition -->
580
581 <!ELEMENT DL - - (DT|DD)+ -- definition list -->
582 <!ATTLIST DL
583 %attrs; -- %coreattrs, %i18n, %events --
584 compact (compact) #IMPLIED -- reduced interitem spacing --
585 >
586
587 <!ELEMENT DT - O (%inline;)* -- definition term -->
588 <!ELEMENT DD - O (%flow;)* -- definition description -->
589 <!ATTLIST (DT|DD)
590 %attrs; -- %coreattrs, %i18n, %events --
591 >
592
593 <!-- Ordered lists (OL) Numbering style
594
595 1 arablic numbers 1, 2, 3, ...
596 a lower alpha a, b, c, ...
597 A upper alpha A, B, C, ...
598 i lower roman i, ii, iii, ...
599 I upper roman I, II, III, ...
600
601 The style is applied to the sequence number which by default
602 is reset to 1 for the first list item in an ordered list.
603
604 This can't be expressed directly in SGML due to case folding.
605 -->
606
607 <!ENTITY % OLStyle "CDATA" -- constrained to: "(1|a|A|i|I)" -->
608
609 <!ELEMENT OL - - (LI)+ -- ordered list -->
610 <!ATTLIST OL
611 %attrs; -- %coreattrs, %i18n, %events --
612 type %OLStyle; #IMPLIED -- numbering style --
613 compact (compact) #IMPLIED -- reduced interitem spacing --
614 start NUMBER #IMPLIED -- starting sequence number --
615 >
616
617 <!-- Unordered Lists (UL) bullet styles -->
618 <!ENTITY % ULStyle "(disc|square|circle)">
619
620 <!ELEMENT UL - - (LI)+ -- unordered list -->
621 <!ATTLIST UL
622 %attrs; -- %coreattrs, %i18n, %events --
623 type %ULStyle; #IMPLIED -- bullet style --
624 compact (compact) #IMPLIED -- reduced interitem spacing --
625 >
626
627 <!ELEMENT (DIR|MENU) - - (LI)+ -(%block;) -- directory list, menu list -->
628 <!ATTLIST DIR
629 %attrs; -- %coreattrs, %i18n, %events --
630 compact (compact) #IMPLIED -- reduced interitem spacing --
631 >
632 <!ATTLIST MENU
633 %attrs; -- %coreattrs, %i18n, %events --
634 compact (compact) #IMPLIED -- reduced interitem spacing --
635 >
636
637 <!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle;|%OLStyle;)" -->
638
639 <!ELEMENT LI - O (%flow;)* -- list item -->
640 <!ATTLIST LI
641 %attrs; -- %coreattrs, %i18n, %events --
642 type %LIStyle; #IMPLIED -- list item style --
643 value NUMBER #IMPLIED -- reset sequence number --
644 >
645
646 <!--================ Forms ===============================================-->
647 <!ELEMENT FORM - - (%flow;)* -(FORM) -- interactive form -->
648 <!ATTLIST FORM
649 %attrs; -- %coreattrs, %i18n, %events --
650 action %URI; #REQUIRED -- server-side form handler --
651 method (GET|POST) GET -- HTTP method used to submit the form--
652 enctype %ContentType; "application/x-www-form-urlencoded"
653 accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
654 name CDATA #IMPLIED -- name of form for scripting --
655 onsubmit %Script; #IMPLIED -- the form was submitted --
656 onreset %Script; #IMPLIED -- the form was reset --
657 target %FrameTarget; #IMPLIED -- render in this frame --
658 accept-charset %Charsets; #IMPLIED -- list of supported charsets --
659 >
660
661 <!-- Each label must not contain more than ONE field -->
662 <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
663 <!ATTLIST LABEL
664 %attrs; -- %coreattrs, %i18n, %events --
665 for IDREF #IMPLIED -- matches field ID value --
666 accesskey %Character; #IMPLIED -- accessibility key character --
667 onfocus %Script; #IMPLIED -- the element got the focus --
668 onblur %Script; #IMPLIED -- the element lost the focus --
669 >
670
671 <!ENTITY % InputType
672 "(TEXT | PASSWORD | CHECKBOX |
673 RADIO | SUBMIT | RESET |
674 FILE | HIDDEN | IMAGE | BUTTON)"
675 >
676
677 <!-- attribute name required for all but submit and reset -->
678 <!ELEMENT INPUT - O EMPTY -- form control -->
679 <!ATTLIST INPUT
680 %attrs; -- %coreattrs, %i18n, %events --
681 type %InputType; TEXT -- what kind of widget is needed --
682 name CDATA #IMPLIED -- submit as part of form --
683 value CDATA #IMPLIED -- Specify for radio buttons and checkboxes --
684 checked (checked) #IMPLIED -- for radio buttons and check boxes --
685 disabled (disabled) #IMPLIED -- unavailable in this context --
686 readonly (readonly) #IMPLIED -- for text and passwd --
687 size CDATA #IMPLIED -- specific to each type of field --
688 maxlength NUMBER #IMPLIED -- max chars for text fields --
689 src %URI; #IMPLIED -- for fields with images --
690 alt CDATA #IMPLIED -- short description --
691 usemap %URI; #IMPLIED -- use client-side image map --
692 ismap (ismap) #IMPLIED -- use server-side image map --
693 tabindex NUMBER #IMPLIED -- position in tabbing order --
694 accesskey %Character; #IMPLIED -- accessibility key character --
695 onfocus %Script; #IMPLIED -- the element got the focus --
696 onblur %Script; #IMPLIED -- the element lost the focus --
697 onselect %Script; #IMPLIED -- some text was selected --
698 onchange %Script; #IMPLIED -- the element value was changed --
699 accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
700 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
701 %reserved; -- reserved for possible future use --
702 >
703
704 <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->
705 <!ATTLIST SELECT
706 %attrs; -- %coreattrs, %i18n, %events --
707 name CDATA #IMPLIED -- field name --
708 size NUMBER #IMPLIED -- rows visible --
709 multiple (multiple) #IMPLIED -- default is single selection --
710 disabled (disabled) #IMPLIED -- unavailable in this context --
711 tabindex NUMBER #IMPLIED -- position in tabbing order --
712 onfocus %Script; #IMPLIED -- the element got the focus --
713 onblur %Script; #IMPLIED -- the element lost the focus --
714 onchange %Script; #IMPLIED -- the element value was changed --
715 %reserved; -- reserved for possible future use --
716 >
717
718 <!ELEMENT OPTGROUP - - (OPTION)+ -- option group -->
719 <!ATTLIST OPTGROUP
720 %attrs; -- %coreattrs, %i18n, %events --
721 disabled (disabled) #IMPLIED -- unavailable in this context --
722 label %Text; #REQUIRED -- for use in hierarchical menus --
723 >
724
725 <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
726 <!ATTLIST OPTION
727 %attrs; -- %coreattrs, %i18n, %events --
728 selected (selected) #IMPLIED
729 disabled (disabled) #IMPLIED -- unavailable in this context --
730 label %Text; #IMPLIED -- for use in hierarchical menus --
731 value CDATA #IMPLIED -- defaults to element content --
732 >
733
734 <!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
735 <!ATTLIST TEXTAREA
736 %attrs; -- %coreattrs, %i18n, %events --
737 name CDATA #IMPLIED
738 rows NUMBER #REQUIRED
739 cols NUMBER #REQUIRED
740 disabled (disabled) #IMPLIED -- unavailable in this context --
741 readonly (readonly) #IMPLIED
742 tabindex NUMBER #IMPLIED -- position in tabbing order --
743 accesskey %Character; #IMPLIED -- accessibility key character --
744 onfocus %Script; #IMPLIED -- the element got the focus --
745 onblur %Script; #IMPLIED -- the element lost the focus --
746 onselect %Script; #IMPLIED -- some text was selected --
747 onchange %Script; #IMPLIED -- the element value was changed --
748 %reserved; -- reserved for possible future use --
749 >
750
751 <!--
752 #PCDATA is to solve the mixed content problem,
753 per specification only whitespace is allowed there!
754 -->
755 <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->
756 <!ATTLIST FIELDSET
757 %attrs; -- %coreattrs, %i18n, %events --
758 >
759
760 <!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
761 <!ENTITY % LAlign "(top|bottom|left|right)">
762
763 <!ATTLIST LEGEND
764 %attrs; -- %coreattrs, %i18n, %events --
765 accesskey %Character; #IMPLIED -- accessibility key character --
766 align %LAlign; #IMPLIED -- relative to fieldset --
767 >
768
769 <!ELEMENT BUTTON - -
770 (%flow;)* -(A|%formctrl;|FORM|ISINDEX|FIELDSET|IFRAME)
771 -- push button -->
772 <!ATTLIST BUTTON
773 %attrs; -- %coreattrs, %i18n, %events --
774 name CDATA #IMPLIED
775 value CDATA #IMPLIED -- sent to server when submitted --
776 type (button|submit|reset) submit -- for use as form button --
777 disabled (disabled) #IMPLIED -- unavailable in this context --
778 tabindex NUMBER #IMPLIED -- position in tabbing order --
779 accesskey %Character; #IMPLIED -- accessibility key character --
780 onfocus %Script; #IMPLIED -- the element got the focus --
781 onblur %Script; #IMPLIED -- the element lost the focus --
782 %reserved; -- reserved for possible future use --
783 >
784
785 <!--======================= Tables =======================================-->
786
787 <!-- IETF HTML table standard, see [RFC1942] -->
788
789 <!--
790 The BORDER attribute sets the thickness of the frame around the
791 table. The default units are screen pixels.
792
793 The FRAME attribute specifies which parts of the frame around
794 the table should be rendered. The values are not the same as
795 CALS to avoid a name clash with the VALIGN attribute.
796
797 The value "border" is included for backwards compatibility with
798 <TABLE BORDER> which yields frame=border and border=implied
799 For <TABLE BORDER=1> you get border=1 and frame=implied. In this
800 case, it is appropriate to treat this as frame=border for backwards
801 compatibility with deployed browsers.
802 -->
803 <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
804
805 <!--
806 The RULES attribute defines which rules to draw between cells:
807
808 If RULES is absent then assume:
809 "none" if BORDER is absent or BORDER=0 otherwise "all"
810 -->
811
812 <!ENTITY % TRules "(none | groups | rows | cols | all)">
813
814 <!-- horizontal placement of table relative to document -->
815 <!ENTITY % TAlign "(left|center|right)">
816
817 <!-- horizontal alignment attributes for cell contents -->
818 <!ENTITY % cellhalign
819 "align (left|center|right|justify|char) #IMPLIED
820 char %Character; #IMPLIED -- alignment char, e.g. char=':' --
821 charoff %Length; #IMPLIED -- offset for alignment char --"
822 >
823
824 <!-- vertical alignment attributes for cell contents -->
825 <!ENTITY % cellvalign
826 "valign (top|middle|bottom|baseline) #IMPLIED"
827 >
828
829 <!ELEMENT TABLE - -
830 (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
831 <!ELEMENT CAPTION - - (%inline;)* -- table caption -->
832 <!ELEMENT THEAD - O (TR)+ -- table header -->
833 <!ELEMENT TFOOT - O (TR)+ -- table footer -->
834 <!ELEMENT TBODY O O (TR)+ -- table body -->
835 <!ELEMENT COLGROUP - O (COL)* -- table column group -->
836 <!ELEMENT COL - O EMPTY -- table column -->
837 <!ELEMENT TR - O (TH|TD)+ -- table row -->
838 <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell-->
839
840 <!ATTLIST TABLE -- table element --
841 %attrs; -- %coreattrs, %i18n, %events --
842 summary %Text; #IMPLIED -- purpose/structure for speech output--
843 width %Length; #IMPLIED -- table width --
844 border %Pixels; #IMPLIED -- controls frame width around table --
845 frame %TFrame; #IMPLIED -- which parts of frame to render --
846 rules %TRules; #IMPLIED -- rulings between rows and cols --
847 cellspacing %Length; #IMPLIED -- spacing between cells --
848 cellpadding %Length; #IMPLIED -- spacing within cells --
849 align %TAlign; #IMPLIED -- table position relative to window --
850 bgcolor %Color; #IMPLIED -- background color for cells --
851 %reserved; -- reserved for possible future use --
852 datapagesize CDATA #IMPLIED -- reserved for possible future use --
853 >
854
855 <!ENTITY % CAlign "(top|bottom|left|right)">
856
857 <!ATTLIST CAPTION
858 %attrs; -- %coreattrs, %i18n, %events --
859 align %CAlign; #IMPLIED -- relative to table --
860 >
861
862 <!--
863 COLGROUP groups a set of COL elements. It allows you to group
864 several semantically related columns together.
865 -->
866 <!ATTLIST COLGROUP
867 %attrs; -- %coreattrs, %i18n, %events --
868 span NUMBER 1 -- default number of columns in group --
869 width %MultiLength; #IMPLIED -- default width for enclosed COLs --
870 %cellhalign; -- horizontal alignment in cells --
871 %cellvalign; -- vertical alignment in cells --
872 >
873
874 <!--
875 COL elements define the alignment properties for cells in
876 one or more columns.
877
878 The WIDTH attribute specifies the width of the columns, e.g.
879
880 width=64 width in screen pixels
881 width=0.5* relative width of 0.5
882
883 The SPAN attribute causes the attributes of one
884 COL element to apply to more than one column.
885 -->
886 <!ATTLIST COL -- column groups and properties --
887 %attrs; -- %coreattrs, %i18n, %events --
888 span NUMBER 1 -- COL attributes affect N columns --
889 width %MultiLength; #IMPLIED -- column width specification --
890 %cellhalign; -- horizontal alignment in cells --
891 %cellvalign; -- vertical alignment in cells --
892 >
893
894 <!--
895 Use THEAD to duplicate headers when breaking table
896 across page boundaries, or for static headers when
897 TBODY sections are rendered in scrolling panel.
898
899 Use TFOOT to duplicate footers when breaking table
900 across page boundaries, or for static footers when
901 TBODY sections are rendered in scrolling panel.
902
903 Use multiple TBODY sections when rules are needed
904 between groups of table rows.
905 -->
906 <!ATTLIST (THEAD|TBODY|TFOOT) -- table section --
907 %attrs; -- %coreattrs, %i18n, %events --
908 %cellhalign; -- horizontal alignment in cells --
909 %cellvalign; -- vertical alignment in cells --
910 >
911
912 <!ATTLIST TR -- table row --
913 %attrs; -- %coreattrs, %i18n, %events --
914 %cellhalign; -- horizontal alignment in cells --
915 %cellvalign; -- vertical alignment in cells --
916 bgcolor %Color; #IMPLIED -- background color for row --
917 >
918
919
920 <!-- Scope is simpler than headers attribute for common tables -->
921 <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
922
923 <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
924 <!ATTLIST (TH|TD) -- header or data cell --
925 %attrs; -- %coreattrs, %i18n, %events --
926 abbr %Text; #IMPLIED -- abbreviation for header cell --
927 axis CDATA #IMPLIED -- comma-separated list of related headers--
928 headers IDREFS #IMPLIED -- list of id's for header cells --
929 scope %Scope; #IMPLIED -- scope covered by header cells --
930 rowspan NUMBER 1 -- number of rows spanned by cell --
931 colspan NUMBER 1 -- number of cols spanned by cell --
932 %cellhalign; -- horizontal alignment in cells --
933 %cellvalign; -- vertical alignment in cells --
934 nowrap (nowrap) #IMPLIED -- suppress word wrap --
935 bgcolor %Color; #IMPLIED -- cell background color --
936 width %Length; #IMPLIED -- width for cell --
937 height %Length; #IMPLIED -- height for cell --
938 >
939
940 <!--================== Document Frames ===================================-->
941
942 <!--
943 The content model for HTML documents depends on whether the HEAD is
944 followed by a FRAMESET or BODY element. The widespread omission of
945 the BODY start tag makes it impractical to define the content model
946 without the use of a marked section.
947 -->
948
949 <![ %HTML.Frameset; [
950 <!ELEMENT FRAMESET - - ((FRAMESET|FRAME)+ & NOFRAMES?) -- window subdivision-->
951 <!ATTLIST FRAMESET
952 %coreattrs; -- id, class, style, title --
953 rows %MultiLengths; #IMPLIED -- list of lengths,
954 default: 100% (1 row) --
955 cols %MultiLengths; #IMPLIED -- list of lengths,
956 default: 100% (1 col) --
957 onload %Script; #IMPLIED -- all the frames have been loaded --
958 onunload %Script; #IMPLIED -- all the frames have been removed --
959 >
960 ]]>
961
962 <![ %HTML.Frameset; [
963 <!-- reserved frame names start with "_" otherwise starts with letter -->
964 <!ELEMENT FRAME - O EMPTY -- subwindow -->
965 <!ATTLIST FRAME
966 %coreattrs; -- id, class, style, title --
967 longdesc %URI; #IMPLIED -- link to long description
968 (complements title) --
969 name CDATA #IMPLIED -- name of frame for targetting --
970 src %URI; #IMPLIED -- source of frame content --
971 frameborder (1|0) 1 -- request frame borders? --
972 marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
973 marginheight %Pixels; #IMPLIED -- margin height in pixels --
974 noresize (noresize) #IMPLIED -- allow users to resize frames? --
975 scrolling (yes|no|auto) auto -- scrollbar or none --
976 >
977 ]]>
978
979 <!ELEMENT IFRAME - - (%flow;)* -- inline subwindow -->
980 <!ATTLIST IFRAME
981 %coreattrs; -- id, class, style, title --
982 longdesc %URI; #IMPLIED -- link to long description
983 (complements title) --
984 name CDATA #IMPLIED -- name of frame for targetting --
985 src %URI; #IMPLIED -- source of frame content --
986 frameborder (1|0) 1 -- request frame borders? --
987 marginwidth %Pixels; #IMPLIED -- margin widths in pixels --
988 marginheight %Pixels; #IMPLIED -- margin height in pixels --
989 scrolling (yes|no|auto) auto -- scrollbar or none --
990 align %IAlign; #IMPLIED -- vertical or horizontal alignment --
991 height %Length; #IMPLIED -- frame height --
992 width %Length; #IMPLIED -- frame width --
993 >
994
995 <![ %HTML.Frameset; [
996 <!ENTITY % noframes.content "(BODY) -(NOFRAMES)">
997 ]]>
998
999 <!ENTITY % noframes.content "(%flow;)*">
1000
1001 <!ELEMENT NOFRAMES - - %noframes.content;
1002 -- alternate content container for non frame-based rendering -->
1003 <!ATTLIST NOFRAMES
1004 %attrs; -- %coreattrs, %i18n, %events --
1005 >
1006
1007 <!--================ Document Head =======================================-->
1008 <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
1009 <!ENTITY % head.content "TITLE & ISINDEX? & BASE?">
1010
1011 <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
1012 <!ATTLIST HEAD
1013 %attrs;
1014 profile %URI; #IMPLIED -- named dictionary of meta info --
1015 >
1016
1017 <!-- The TITLE element is not considered part of the flow of text.
1018 It should be displayed, for example as the page header or
1019 window title. Exactly one title is required per document.
1020 -->
1021 <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
1022 <!ATTLIST TITLE %attrs>
1023
1024 <!ELEMENT ISINDEX - O EMPTY -- single line prompt -->
1025 <!ATTLIST ISINDEX
1026 %coreattrs; -- id, class, style, title --
1027 %i18n; -- lang, dir --
1028 prompt %Text; #IMPLIED -- prompt message -->
1029
1030 <!ELEMENT BASE - O EMPTY -- document base URI -->
1031 <!ATTLIST BASE
1032 href %URI; #IMPLIED -- URI that acts as base URI --
1033 target %FrameTarget; #IMPLIED -- render in this frame --
1034 >
1035
1036 <!ELEMENT META - O EMPTY -- generic metainformation -->
1037 <!ATTLIST META
1038 %i18n; -- lang, dir, for use with content --
1039 %metainformation;
1040 http-equiv NAME #IMPLIED -- HTTP response header name --
1041 name NAME #IMPLIED -- metainformation name --
1042 scheme CDATA #IMPLIED -- select form of content --
1043 >
1044
1045 <!ELEMENT STYLE - - %StyleSheet -- style info -->
1046 <!ATTLIST STYLE
1047 %i18n; -- lang, dir, for use with title --
1048 type %ContentType; #REQUIRED -- content type of style language --
1049 media %MediaDesc; #IMPLIED -- designed for use with these media --
1050 title %Text; #IMPLIED -- advisory title --
1051 >
1052
1053 <!ELEMENT SCRIPT - - %Script; -- script statements -->
1054 <!ATTLIST SCRIPT
1055 charset %Charset; #IMPLIED -- char encoding of linked resource --
1056 type %ContentType; #REQUIRED -- content type of script language --
1057 language CDATA #IMPLIED -- predefined script language name --
1058 src %URI; #IMPLIED -- URI for an external script --
1059 defer (defer) #IMPLIED -- UA may defer execution of script --
1060 event CDATA #IMPLIED -- reserved for possible future use --
1061 for %URI; #IMPLIED -- reserved for possible future use --
1062 >
1063
1064 <!ELEMENT NOSCRIPT - - (%flow;)*
1065 -- alternate content container for non script-based rendering -->
1066 <!ATTLIST NOSCRIPT
1067 %attrs; -- %coreattrs, %i18n, %events --
1068 >
1069
1070 <!--================ Document Structure ==================================-->
1071 <!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
1072
1073 <![ %HTML.Frameset; [
1074 <!ENTITY % html.content "HEAD, FRAMESET">
1075 ]]>
1076
1077 <!ENTITY % html.content "HEAD, BODY">
1078
1079 <!ELEMENT HTML O O (%html.content;) -- document root element -->
1080 <!ATTLIST HTML
1081 %attrs;
1082 %version;
1083 >