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