Debian Codegraph @

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