strict.dtd 34 KB

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