| 1 |
<!-- html.dtd |
<!-- html.dtd |
| 2 |
|
|
| 3 |
Document Type Definition for the HyperText Markup Language |
Document Type Definition for the HyperText Markup Language |
| 4 |
as used by the World Wide Web application (HTML DTD). |
as used by the World Wide Web (HTML DTD). |
| 5 |
|
|
| 6 |
$Id$ |
$Id$ |
| 7 |
|
|
| 8 |
|
Author: Daniel W. Connolly <[email protected]> |
| 9 |
|
See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html |
| 10 |
|
http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html |
| 11 |
--> |
--> |
| 12 |
|
|
| 13 |
|
<!ENTITY HTML.Version |
| 14 |
|
"-//W3O//DTD WWW HTML 2.0//EN" |
| 15 |
|
-- public identifier for "current pracitice" version -- |
| 16 |
|
|
| 17 |
|
-- Typical usage: |
| 18 |
|
|
| 19 |
|
<!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN"> |
| 20 |
|
<html> |
| 21 |
|
... |
| 22 |
|
</html> |
| 23 |
|
-- |
| 24 |
|
> |
| 25 |
|
|
| 26 |
|
|
| 27 |
<!-- Feature Test Entities --> |
<!-- Feature Test Entities --> |
| 28 |
|
|
| 29 |
<!-- To use these, write your document like: |
<!-- To use these, write your document like: |
| 41 |
sgmls -s doctype.sgml foo.html |
sgmls -s doctype.sgml foo.html |
| 42 |
--> |
--> |
| 43 |
|
|
| 44 |
<!ENTITY % HTML.Minimal "IGNORE"> |
<!ENTITY % HTML.Level0 "IGNORE"> |
| 45 |
<!ENTITY % HTML.Obsolete "IGNORE"> |
<!ENTITY % HTML.Obsolete "IGNORE"> |
| 46 |
|
<!ENTITY % HTML.Prescriptive "IGNORE"> |
| 47 |
|
|
| 48 |
<![ %HTML.Minimal [ |
<![ %HTML.Level0 [ |
| 49 |
<!ENTITY % HTML.linkRelationships "IGNORE"> |
<!ENTITY % HTML.linkRelationships "IGNORE"> |
| 50 |
<!ENTITY % HTML.linkMethods "IGNORE"> |
<!ENTITY % HTML.linkMethods "IGNORE"> |
| 51 |
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
| 52 |
<!ENTITY % HTML.forms "IGNORE"> |
<!ENTITY % HTML.forms "IGNORE"> |
| 53 |
<!-- @@ nested lists --> |
<!ENTITY % HTML.phrase "IGNORE"> |
| 54 |
<!-- @@ phrases --> |
<!ENTITY % HTML.NEXTID "IGNORE"> |
| 55 |
|
<!-- @# Are the following required for conformance? --> |
| 56 |
|
<!-- @# nested lists --> |
| 57 |
|
<!-- @# IMG --> |
| 58 |
|
<!-- @# headers inside A --> |
| 59 |
|
<!-- @# nested phrases, fonts --> |
| 60 |
]]> |
]]> |
| 61 |
|
|
| 62 |
<![ %HTML.Obsolete [ |
<![ %HTML.Obsolete [ |
|
<!ENTITY % HTML.PLAINTEXT "INCLUDE"> |
|
| 63 |
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
| 64 |
<!ENTITY % HTML.litCDATA "INCLUDE"> |
<!ENTITY % HTML.litCDATA "INCLUDE"> |
|
<!ENTITY % HTML.font-phrase "INCLUDE"> |
|
|
<!ENTITY % HTML.anchorNameCDATA "INCLUDE"> |
|
| 65 |
<!ENTITY % HTML.pSeparator "INCLUDE"> |
<!ENTITY % HTML.pSeparator "INCLUDE"> |
| 66 |
]]> |
]]> |
| 67 |
|
|
| 68 |
<!ENTITY % HTML.GO "IGNORE" |
<![ %HTML.Prescriptive [ |
| 69 |
-- The GO element used in ORA GNN. What is this??? --> |
<!-- |
| 70 |
|
This feature test entity prescribes that certain |
| 71 |
|
idioms detract from the structural integrity of an |
| 72 |
|
HTML document, and are therefore disallowed. |
| 73 |
|
--> |
| 74 |
|
<!ENTITY % HTML.font-phrase "IGNORE"> |
| 75 |
|
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
| 76 |
|
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
| 77 |
|
<!ENTITY % HTML.bodyBlockOnly "INCLUDE"> |
| 78 |
|
]]> |
| 79 |
|
|
| 80 |
<!ENTITY % HTML.aEndOmissable "IGNORE" |
<!ENTITY % HTML.phrase "INCLUDE" |
| 81 |
-- infer </A> tags, as in ORA GNN stuff --> |
-- phrase markup, ala TeXinfo: TT, EM, etc. |
| 82 |
|
--> |
| 83 |
|
|
| 84 |
<!ENTITY % HTML.isindexAtEnd "IGNORE" |
<!ENTITY % HTML.bodyBlockOnly "IGNORE" |
| 85 |
-- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> |
-- only allow block elements in the BODY element |
| 86 |
|
This means all paragraphs need to start with a <P> tag. |
| 87 |
|
--> |
| 88 |
|
|
| 89 |
<!ENTITY % HTML.pSeparator "IGNORE" |
<!ENTITY % HTML.pSeparator "IGNORE" |
| 90 |
-- use P element as paragraph separator, rather that container. |
-- use P element as paragraph separator, rather that container. |
|
This means not all paragraphs need to start with a <P> tag. |
|
| 91 |
--> |
--> |
| 92 |
|
|
| 93 |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
| 107 |
like URN, content type, title... |
like URN, content type, title... |
| 108 |
--> |
--> |
| 109 |
|
|
| 110 |
<!ENTITY % HTML.anchorNameCDATA "IGNORE" |
<!ENTITY % HTML.anchorNameCDATA "INCLUDE" |
| 111 |
-- Anchor names should be distinct. SGML parser can validate |
-- Anchor names should be distinct. SGML parser can validate |
| 112 |
this if the NAME attribute of the A element is declared as ID. |
this if the NAME attribute of the A element is declared as ID. |
| 113 |
But that restricts the syntax of an anchor name to an SGML name, |
But that restricts the syntax of an anchor name to an SGML name, |
| 115 |
up to NAMELEN (34) characters long. |
up to NAMELEN (34) characters long. |
| 116 |
--> |
--> |
| 117 |
|
|
| 118 |
<!ENTITY % HTML.PLAINTEXT "IGNORE" |
<!ENTITY % HTML.PLAINTEXT "INCLUDE" |
| 119 |
-- Support for the <PLAINTEXT> tag as a sign of the |
-- Support for the <PLAINTEXT> tag as a sign of the |
| 120 |
end of th HTML data stream and the beginning of a stream |
end of th HTML data stream and the beginning of a stream |
| 121 |
of text/plain data |
of text/plain data |
| 132 |
next anchor id to use |
next anchor id to use |
| 133 |
--> |
--> |
| 134 |
|
|
| 135 |
<!ENTITY % HTML.font-phrase "IGNORE" |
<!ENTITY % HTML.font-phrase "INCLUDE" |
| 136 |
-- allow B, I, TT, U outside PRE, |
-- allow B, I, TT, U outside PRE, |
| 137 |
CITE, VAR, etc. inside PRE |
CITE, VAR, etc. inside PRE |
| 138 |
--> |
--> |
| 139 |
|
|
| 140 |
|
<!ENTITY % HTML.KEY "IGNORE" |
| 141 |
|
-- There was once a KEY element, for keyboard keys, menu items, |
| 142 |
|
buttons, etc. but it's not supported or widely documented |
| 143 |
|
--> |
| 144 |
|
|
| 145 |
|
<!ENTITY % HTML.U "IGNORE" |
| 146 |
|
-- There was also a U element, but since it clashes with |
| 147 |
|
the common pracitce of underlining hypertext links, it is |
| 148 |
|
not widely supported |
| 149 |
|
--> |
| 150 |
|
|
| 151 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % HTML.litCDATA "IGNORE" |
| 152 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
| 153 |
--> |
--> |
| 173 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
| 174 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
| 175 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
| 176 |
|
|
| 177 |
--> |
--> |
| 178 |
|
|
| 179 |
<!ENTITY % Content-Type "CDATA" |
<!ENTITY % Content-Type "CDATA" |
| 180 |
-- meaning a MIME content type, as per RFC1341 or any of its updates. |
-- meaning a MIME content type, as per RFC1521 |
| 181 |
--> |
--> |
| 182 |
|
|
| 183 |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
| 220 |
|
|
| 221 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
| 222 |
<!ENTITY % obsolete-plaintext ""> |
<!ENTITY % obsolete-plaintext ""> |
|
<![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]> |
|
|
<!ENTITY % end-isindex ""> |
|
| 223 |
|
|
| 224 |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex"> |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;"> |
| 225 |
<!ELEMENT HTML O O (%html-content)> |
<!ELEMENT HTML O O (%html-content)> |
| 226 |
|
|
| 227 |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
| 255 |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
| 256 |
<!ATTLIST BASE |
<!ATTLIST BASE |
| 257 |
|
|
| 258 |
HREF %URI; #IMPLIED |
HREF %URI; #REQUIRED |
| 259 |
|
|
| 260 |
> |
> |
| 261 |
|
|
| 262 |
<!ENTITY % font "TT | B | I | U "> |
<![ %HTML.KEY [ |
| 263 |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE"> |
<!ENTITY % key-emph "| KEY"> |
| 264 |
|
]]> |
| 265 |
|
<!ENTITY % key-emph ""> |
| 266 |
|
|
| 267 |
|
<![ %HTML.U [ |
| 268 |
|
<!ENTITY % u-font "| U"> |
| 269 |
|
]]> |
| 270 |
|
<!ENTITY % u-font ""> |
| 271 |
|
|
| 272 |
|
<!ENTITY % font "TT | B | I %u-font"> |
| 273 |
|
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE |
| 274 |
|
| STRIKE %key-emph"> |
| 275 |
|
|
| 276 |
|
|
| 277 |
<![ %HTML.font-phrase [ |
<![ %HTML.font-phrase [ |
| 278 |
<!ENTITY % obsolete-font "| %font"> |
<!ENTITY % obsolete-font "| %font"> |
| 288 |
<!ENTITY % inline "%phrase %obsolete-font"> |
<!ENTITY % inline "%phrase %obsolete-font"> |
| 289 |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
| 290 |
|
|
| 291 |
<![ %HTML.GO [ |
<!ENTITY % inline ""> |
| 292 |
<!ELEMENT GO - O EMPTY> |
<!ENTITY % pre-inline ""> |
|
<!ENTITY % go-text "| GO"> |
|
|
]]> |
|
|
<!ENTITY % go-text ""> |
|
| 293 |
|
|
| 294 |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %go-text %obsolete-p"> |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p"> |
| 295 |
|
|
| 296 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
| 297 |
|
|
| 299 |
<!ENTITY % font-content "#PCDATA"> |
<!ENTITY % font-content "#PCDATA"> |
| 300 |
<!ELEMENT (%font;) - - (%font-content;)> |
<!ELEMENT (%font;) - - (%font-content;)> |
| 301 |
|
|
| 302 |
|
<![ %HTML.phrase [ |
| 303 |
<!ELEMENT (%phrase;) - - (%htext)+> |
<!ELEMENT (%phrase;) - - (%htext)+> |
| 304 |
|
]]> |
| 305 |
|
|
| 306 |
<!ENTITY % pre "PRE | XMP | LISTING"> |
<!ENTITY % pre "PRE | XMP | LISTING"> |
| 307 |
|
|
| 320 |
%block-form %block-p"> |
%block-form %block-p"> |
| 321 |
|
|
| 322 |
|
|
| 323 |
<!ENTITY % body-content "%heading | %block %obsolete-htext"> |
<![ %HTML.bodyBlockOnly [ |
| 324 |
<!ELEMENT BODY O O (%body-content)*> |
<!ENTITY % current-htext ""> |
| 325 |
|
]]> |
| 326 |
|
<!ENTITY % current-htext "| %htext"> |
| 327 |
|
|
| 328 |
|
<!ENTITY % body-content "%heading | %block %current-htext"> |
| 329 |
|
<!ELEMENT BODY O O (%body-content)*> |
| 330 |
|
|
|
<![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]> |
|
|
<!ENTITY % a-end "-"> |
|
| 331 |
|
|
| 332 |
<!ELEMENT A - %a-end (%heading|%block|%text)+ -(A) |
<!ELEMENT A - - (%heading|%block|%text)+ -(A) |
| 333 |
-- @# Technically, this allows silliness like: |
-- @# Technically, this allows silliness like: |
| 334 |
<H2><A>xyz<H1>h1</H1></A></H2> |
<H2><A>xyz<H1>h1</H1></A></H2> |
| 335 |
The right way to do anchors outside of %htext is more like: |
The right way to do anchors outside of %htext is more like: |
| 358 |
|
|
| 359 |
<!ELEMENT DL - - (DT*, DD?)+> |
<!ELEMENT DL - - (DT*, DD?)+> |
| 360 |
<!ATTLIST DL |
<!ATTLIST DL |
| 361 |
STYLE (COMPACT) #IMPLIED> |
COMPACT (COMPACT) #IMPLIED> |
| 362 |
|
|
| 363 |
<!ELEMENT DT - O (%htext)+> |
<!ELEMENT DT - O (%htext)+> |
| 364 |
<!ELEMENT DD - O (%htext|%block)+> |
<!ELEMENT DD - O (%htext|%block)+> |
| 370 |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
| 371 |
-- for quoting some other source --> |
-- for quoting some other source --> |
| 372 |
|
|
| 373 |
<!ELEMENT ADDRESS - - (%htext;)+> |
<!ELEMENT ADDRESS - - (%htext;|%block)+> |
| 374 |
|
|
| 375 |
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
| 376 |
<!ATTLIST PRE |
<!ATTLIST PRE |
| 383 |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
| 384 |
%ISOlat1; |
%ISOlat1; |
| 385 |
|
|
| 386 |
<!ENTITY amp "&" -- ampersand --> |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
| 387 |
<!ENTITY gt ">" -- greater than --> |
<!ENTITY amp CDATA "&" -- ampersand --> |
| 388 |
<!ENTITY lt "<" -- less than --> |
<!ENTITY gt CDATA ">" -- greater than --> |
| 389 |
|
<!ENTITY lt CDATA "<" -- less than --> |
| 390 |
|
<!ENTITY quot CDATA """ -- double quote --> |
| 391 |
|
|
| 392 |
|
<!-- Processing Entities --> |
| 393 |
|
|
| 394 |
<!ENTITY nbsp "<? nonbreaking-space>"> |
<!ENTITY nbsp "<? nonbreaking-space>"> |
| 395 |
<!-- @# should add entites for processing instructions |
<!-- @# should add entites for processing instructions |
| 396 |
for line break, centering, etc. --> |
for line break, centering, etc. --> |
| 397 |
|
|
| 398 |
|
|
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
|
|
<!ENTITY % lit-content "RCDATA"> |
|
|
<!ELEMENT (%literal) - - %lit-content> |
|
|
|
|
|
<![ %HTML.PLAINTEXT [ |
|
|
<!ELEMENT PLAINTEXT - O EMPTY> |
|
|
]]> |
|
|
|
|
|
|
|
| 399 |
<!-- Forms --> |
<!-- Forms --> |
| 400 |
<![ %HTML.forms [ |
<![ %HTML.forms [ |
| 401 |
|
|
| 416 |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
| 417 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 418 |
SRC %URI #IMPLIED -- for image inputs -- |
SRC %URI #IMPLIED -- for image inputs -- |
| 419 |
STATE (CHECKED) #IMPLIED |
CHECKED (CHECKED) #IMPLIED |
| 420 |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
| 421 |
MAXLENGTH NUMBER #IMPLIED |
MAXLENGTH NUMBER #IMPLIED |
| 422 |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
| 426 |
<!ATTLIST SELECT |
<!ATTLIST SELECT |
| 427 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
| 428 |
SIZE NUMBER #IMPLIED |
SIZE NUMBER #IMPLIED |
| 429 |
SELECTIONS (MULTIPLE) #IMPLIED |
MULTIPLE (MULTIPLE) #IMPLIED |
| 430 |
> |
> |
| 431 |
|
|
| 432 |
<!ELEMENT OPTION - O (#PCDATA)> |
<!ELEMENT OPTION - O (#PCDATA)> |
| 433 |
<!ATTLIST OPTION |
<!ATTLIST OPTION |
| 434 |
STATE (SELECTED) #IMPLIED |
SELECTED (SELECTED) #IMPLIED |
| 435 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 436 |
> |
> |
| 437 |
|
|
| 443 |
> |
> |
| 444 |
]]> |
]]> |
| 445 |
|
|
| 446 |
|
<!-- Obsolete Elements --> |
| 447 |
|
|
| 448 |
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
| 449 |
|
<!ENTITY % lit-content "RCDATA"> |
| 450 |
|
<!ELEMENT (%literal) - - %lit-content> |
| 451 |
|
|
| 452 |
|
<![ %HTML.PLAINTEXT [ |
| 453 |
|
<!ELEMENT PLAINTEXT - O EMPTY> |
| 454 |
|
]]> |