| 1 |
<!-- html.dtd |
<!-- html.dtd |
| 2 |
|
|
| 3 |
Document Type Definition for the HyperText Markup Language |
Document Type Definition for the HyperText Markup Language (HTML DTD) |
|
as used by the World Wide Web (HTML DTD). |
|
| 4 |
|
|
| 5 |
$Id$ |
$Id$ |
| 6 |
|
|
| 7 |
Author: Daniel W. Connolly <connolly@hal.com> |
Author: Daniel W. Connolly <connolly@hal.com> |
| 8 |
See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html |
See Also: html.decl, html-0.dtd, html-1.dtd |
| 9 |
http://info.cern.ch/hypertext/WWW/MarkUp/MarkUp.html |
http://www.hal.com/%7Econnolly/html-spec/index.html |
| 10 |
|
http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html |
| 11 |
--> |
--> |
| 12 |
|
|
| 13 |
<!ENTITY HTML.Version |
<!ENTITY % HTML.Version |
| 14 |
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
"-//IETF//DTD HTML//EN//2.0" |
|
-- public identifier for "current pracitice" version -- |
|
|
-- actually, take the $'s out to get the real public identifer, -- |
|
|
-- since $ is illegal in public identifier. When DTD stabilizes, -- |
|
|
-- we'll need to stop using RCS keywords to version the pub id -- |
|
| 15 |
|
|
| 16 |
-- Typical usage: |
-- Typical usage: |
| 17 |
|
|
| 18 |
<!DOCTYPE HTML PUBLIC "-//connolly hal.com//DTD WWW HTML |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
|
$Date$//EN"> |
|
| 19 |
<html> |
<html> |
| 20 |
... |
... |
| 21 |
</html> |
</html> |
| 23 |
> |
> |
| 24 |
|
|
| 25 |
|
|
| 26 |
<!-- Feature Test Entities --> |
<!--================== Feature Test Entities ==============================--> |
| 27 |
|
|
| 28 |
<!-- To use these, write your document like: |
<!ENTITY % HTML.Recommended "IGNORE" |
| 29 |
<!DOCTYPE HTML [ |
-- Certain features of the language are necessary for compatibility |
| 30 |
<!ENTITY % HTML.Optional "INCLUDE"> |
with widespread usage, but they may compromise the structural |
| 31 |
<!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN"> |
integrity of a document. This feature test entity enables |
| 32 |
%html; |
a more prescriptive document type definition that eliminates |
| 33 |
]> |
those features. |
|
<TITLE>Here's my doc</TITLE> |
|
|
<p>It uses lots of optional features |
|
|
|
|
|
In practice, if you're using sgmls to validate your docs, |
|
|
you can stick the <!DOCTYPE [...]> in a separate file and |
|
|
validate with: |
|
|
sgmls -s doctype.sgml foo.html |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.Minimal "IGNORE"> |
|
|
<!ENTITY % HTML.Obsolete "IGNORE"> |
|
|
<!ENTITY % HTML.Prescriptive "IGNORE"> |
|
|
|
|
|
<![ %HTML.Minimal [ |
|
|
<!ENTITY % HTML.linkRelationships "IGNORE"> |
|
|
<!ENTITY % HTML.linkMethods "IGNORE"> |
|
|
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
|
|
<!ENTITY % HTML.forms "IGNORE"> |
|
|
<!-- @@ nested lists --> |
|
|
<!-- @@ phrases --> |
|
|
<!-- @@ headers inside A --> |
|
|
<!-- @@ nested phrases, fonts --> |
|
|
]]> |
|
|
|
|
|
<![ %HTML.Obsolete [ |
|
|
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
|
|
<!ENTITY % HTML.litCDATA "INCLUDE"> |
|
|
<!ENTITY % HTML.pSeparator "INCLUDE"> |
|
|
]]> |
|
|
|
|
|
<![ %HTML.Prescriptive [ |
|
|
<!-- |
|
|
This feature test entity prescribes that certain |
|
|
idioms detract from the structural integrity of an |
|
|
HTML document, and are therefore disallowed. |
|
|
--> |
|
|
<!ENTITY % HTML.font-phrase "IGNORE"> |
|
|
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
|
|
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
|
|
<!ENTITY % HTML.bodyBlockOnly "INCLUDE"> |
|
|
]]> |
|
|
|
|
|
<!ENTITY % HTML.bodyBlockOnly "IGNORE" |
|
|
-- only allow block elements in the BODY element |
|
|
This means all paragraphs need to start with a <P> tag. |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.pSeparator "IGNORE" |
|
|
-- use P element as paragraph separator, rather that container. |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.linkRelationships "INCLUDE" |
|
|
-- Adding markup to links to show the relationship between |
|
|
ends of a link |
|
|
see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.linkMethods "INCLUDE" |
|
|
-- Adding markup to links to show the methods supported |
|
|
by the referent object |
|
|
see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.linkRedundantInfo "INCLUDE" |
|
|
-- Adding markup to links to give redundant information |
|
|
like URN, content type, title... |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.anchorNameCDATA "INCLUDE" |
|
|
-- Anchor names should be distinct. SGML parser can validate |
|
|
this if the NAME attribute of the A element is declared as ID. |
|
|
But that restricts the syntax of an anchor name to an SGML name, |
|
|
i.e. a letter followed by letters, numbers, periods and dashes, |
|
|
up to NAMELEN (34) characters long. |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.PLAINTEXT "INCLUDE" |
|
|
-- Support for the <PLAINTEXT> tag as a sign of the |
|
|
end of th HTML data stream and the beginning of a stream |
|
|
of text/plain data |
|
| 34 |
--> |
--> |
| 35 |
|
|
| 36 |
<!ENTITY % HTML.titleCDATA "IGNORE" |
<![ %HTML.Recommended [ |
| 37 |
-- Is the TITLE element #PCDATA, RCDATA, or CDATA content? |
<!ENTITY % HTML.Deprecated "IGNORE"> |
| 38 |
On Mosaic, it's #PCDATA, but in the linemode browser, |
]]> |
|
it's more like CDATA, but not quite. |
|
|
--> |
|
| 39 |
|
|
| 40 |
<!ENTITY % HTML.NEXTID "INCLUDE" |
<!ENTITY % HTML.Deprecated "INCLUDE" |
| 41 |
-- Used by the NeXT implementation to keep track of the |
-- Certain features of the language are necessary for compatibility |
| 42 |
next anchor id to use |
with earlier versions of the specification, but they tend |
| 43 |
|
to be used an implemented inconsistently, and their use is |
| 44 |
|
deprecated. This feature test entity enables a document type |
| 45 |
|
definition that eliminates these features. |
| 46 |
--> |
--> |
| 47 |
|
|
| 48 |
<!ENTITY % HTML.font-phrase "INCLUDE" |
<!ENTITY % HTML.Highlighting "INCLUDE" |
| 49 |
-- allow B, I, TT, U outside PRE, |
-- Use this feature test entity to validate that a document |
| 50 |
CITE, VAR, etc. inside PRE |
uses no highlighting tags, which may be ignored on minimal |
| 51 |
|
implementations. |
| 52 |
--> |
--> |
| 53 |
|
|
| 54 |
<!ENTITY % HTML.KEY "IGNORE" |
<!ENTITY % HTML.Forms "INCLUDE" |
| 55 |
-- There was once a KEY element, for keyboard keys, menu items, |
-- Use this feature test entity to validate that a document |
| 56 |
buttons, etc. but it's not supported or widely documented |
contains no forms, which may not be supported in minimal |
| 57 |
|
implementations |
| 58 |
--> |
--> |
| 59 |
|
|
| 60 |
<!ENTITY % HTML.U "IGNORE" |
<!--================== Imported Names =====================================--> |
|
-- There was also a U element, but since it clashes with |
|
|
the common pracitce of underlining hypertext links, it is |
|
|
not widely supported |
|
|
--> |
|
| 61 |
|
|
| 62 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % Content-Type "CDATA" |
| 63 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- meaning an internet media type |
| 64 |
|
(aka MIME content type, as per RFC1521) |
| 65 |
--> |
--> |
| 66 |
|
|
| 67 |
<!ENTITY % HTML.forms "INCLUDE" |
<!ENTITY % HTTP-Method "GET | POST" |
| 68 |
-- Support for forms as per |
-- as per HTTP specification, in progress |
|
http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html |
|
| 69 |
--> |
--> |
| 70 |
|
|
|
<!-- DTD definitions --> |
|
|
|
|
|
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
|
|
<!ENTITY % list " UL | OL | DIR | MENU "> |
|
|
<!ENTITY % literal " XMP | LISTING "> |
|
|
|
|
| 71 |
<!ENTITY % URI "CDATA" |
<!ENTITY % URI "CDATA" |
| 72 |
-- The term URI means a CDATA attribute |
-- The term URI means a CDATA attribute |
| 73 |
whose value is a Uniform Resource Identifier, |
whose value is a Uniform Resource Identifier, |
| 74 |
as defined by |
as defined by |
| 75 |
"Universal Resource Identifiers" by Tim Berners-Lee |
"Universal Resource Identifiers" by Tim Berners-Lee |
| 76 |
aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html |
aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html |
| 77 |
|
aka RFC 1630 |
| 78 |
|
|
| 79 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
| 80 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
| 81 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
| 82 |
|
|
|
@@ Need to discuss relative addresses. |
|
| 83 |
--> |
--> |
| 84 |
|
|
|
<!ENTITY % Content-Type "CDATA" |
|
|
-- meaning a MIME content type, as per RFC1521 |
|
|
--> |
|
| 85 |
|
|
| 86 |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
<!--================== DTD "Macros" =======================================--> |
|
<!ENTITY % anchor-name "ID"> |
|
| 87 |
|
|
| 88 |
<![ %HTML.linkRelationships [ <!ENTITY % linkRelAttrs " |
<!ENTITY % heading "H1|H2|H3|H4|H5|H6"> |
|
REL CDATA #IMPLIED -- forward relationship type -- |
|
|
REV CDATA #IMPLIED -- reversed relationship type |
|
|
to referent data: |
|
|
|
|
|
PARENT CHILD, SIBLING, NEXT, TOP, |
|
|
DEFINITION, UPDATE, ORIGINAL etc. -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkRelAttrs ""> |
|
|
|
|
|
<![ %HTML.linkRedundantInfo [ <!ENTITY % linkRedundantAttrs " |
|
|
URN CDATA #IMPLIED -- universal resource number -- |
|
|
|
|
|
TITLE CDATA #IMPLIED -- advisory only -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkRedundantAttrs ""> |
|
|
|
|
|
<![ %HTML.linkMethods [ <!ENTITY % linkMethodAttrs " |
|
|
METHODS NAMES #IMPLIED -- supported public methods of the object: |
|
|
TEXTSEARCH, GET, HEAD, ... -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkMethodAttrs ""> |
|
|
|
|
|
<!ENTITY % linkattributes |
|
|
"NAME %anchor-name #IMPLIED |
|
|
HREF %URI; #IMPLIED |
|
|
%linkRelAttrs; |
|
|
%linkRedundantAttrs; |
|
|
%linkMethodAttrs; |
|
|
"> |
|
| 89 |
|
|
| 90 |
|
<!ENTITY % list " UL | OL | DIR | MENU " > |
| 91 |
|
|
|
<!-- Document Element --> |
|
| 92 |
|
|
| 93 |
|
<!--================ Character mnemonic entities ==========================--> |
| 94 |
|
|
| 95 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<!ENTITY % ISOlat1 PUBLIC |
| 96 |
<!ENTITY % obsolete-plaintext ""> |
"-//IETF//ENTITIES Added Latin 1 for HTML//EN"> |
| 97 |
|
%ISOlat1; |
| 98 |
|
|
| 99 |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;"> |
<!ENTITY amp CDATA "&" -- ampersand --> |
| 100 |
<!ELEMENT HTML O O (%html-content)> |
<!ENTITY gt CDATA ">" -- greater than --> |
| 101 |
|
<!ENTITY lt CDATA "<" -- less than --> |
| 102 |
|
<!ENTITY quot CDATA """ -- double quote --> |
| 103 |
|
|
|
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
|
|
& NEXTID?"> ]]> |
|
|
<!ENTITY % head-content "TITLE & ISINDEX? & LINK* & BASE?"> |
|
|
<!ELEMENT HEAD O O (%head-content)> |
|
|
|
|
|
<![ %HTML.titleCDATA [ <!ENTITY % title-content "CDATA"> ]]> |
|
|
<!ENTITY % title-content "(#PCDATA)"> |
|
|
<!ELEMENT TITLE - - %title-content |
|
|
-- The TITLE element is not considered part of the flow of text. |
|
|
It should be displayed, for example as the page header or |
|
|
window title. |
|
|
--> |
|
|
|
|
|
<!ELEMENT ISINDEX - O EMPTY |
|
|
-- WWW clients should offer the option to perform a search on |
|
|
documents containing ISINDEX. |
|
|
--> |
|
| 104 |
|
|
| 105 |
<!ELEMENT NEXTID - O EMPTY> |
<!--=================== Text Markup =======================================--> |
|
<!ATTLIST NEXTID N %anchor-name #REQUIRED |
|
|
-- The number should be a name suitable for use |
|
|
for the ID of a new element. When used, the value |
|
|
has its numeric part incremented. EG Z67 becomes Z68 |
|
|
--> |
|
|
<!ELEMENT LINK - O EMPTY> |
|
|
<!ATTLIST LINK |
|
|
%linkattributes> |
|
|
|
|
|
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
|
|
<!ATTLIST BASE |
|
| 106 |
|
|
| 107 |
HREF %URI; #REQUIRED |
<![ %HTML.Highlighting [ |
| 108 |
|
|
| 109 |
> |
<!ENTITY % font " TT | B | I "> |
| 110 |
|
|
| 111 |
<![ %HTML.KEY [ |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE "> |
|
<!ENTITY % key-emph "| KEY"> |
|
|
]]> |
|
|
<!ENTITY % key-emph ""> |
|
| 112 |
|
|
| 113 |
<![ %HTML.U [ |
<!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font"> |
|
<!ENTITY % u-font "| U"> |
|
|
]]> |
|
|
<!ENTITY % u-font ""> |
|
| 114 |
|
|
| 115 |
<!ENTITY % font "TT | B | I %u-font"> |
<!ELEMENT (%font;|%phrase) - - (%text)+> |
| 116 |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE |
<!-- <TT> Typewriter text --> |
| 117 |
| STRIKE %key-emph"> |
<!-- <B> Bold text --> |
| 118 |
|
<!-- <I> Italic text --> |
| 119 |
|
|
| 120 |
|
<!-- <EM> Emphasized phrase --> |
| 121 |
|
<!-- <STRONG> Strong emphais --> |
| 122 |
|
<!-- <CODE> Source code phrase --> |
| 123 |
|
<!-- <SAMP> Sample text or characters --> |
| 124 |
|
<!-- <KBD> Keyboard phrase, e.g. user input --> |
| 125 |
|
<!-- <VAR> Variable phrase or substituable --> |
| 126 |
|
<!-- <CITE> Name or title of cited work --> |
| 127 |
|
|
| 128 |
<![ %HTML.font-phrase [ |
<!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase"> |
|
<!ENTITY % obsolete-font "| %font"> |
|
|
<!ENTITY % obsolete-phrase "| %phrase"> |
|
|
]]> |
|
|
<!ENTITY % obsolete-font ""> |
|
|
<!ENTITY % obsolete-phrase ""> |
|
|
<![ %HTML.pSeparator [ |
|
|
<!ENTITY % obsolete-p "| P"> |
|
|
]]> |
|
|
<!ENTITY % obsolete-p ""> |
|
| 129 |
|
|
| 130 |
<!ENTITY % inline "%phrase %obsolete-font"> |
]]> |
|
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
|
|
|
|
|
<!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p"> |
|
|
|
|
|
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
|
| 131 |
|
|
| 132 |
<![ %HTML.font-phrase [ <!ENTITY % font-content "(%htext)+"> ]]> |
<!ENTITY % text "#PCDATA | A | IMG | BR"> |
|
<!ENTITY % font-content "#PCDATA"> |
|
|
<!ELEMENT (%font;) - - (%font-content;)> |
|
| 133 |
|
|
| 134 |
<!ELEMENT (%phrase;) - - (%htext)+> |
<!ELEMENT BR - O EMPTY> |
| 135 |
|
<!-- <BR> Line break --> |
| 136 |
|
|
|
<!ENTITY % pre "PRE | XMP | LISTING"> |
|
| 137 |
|
|
| 138 |
<![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]> |
<!--================== Link Markup ========================================--> |
|
<!ENTITY % block-form ""> |
|
| 139 |
|
|
| 140 |
<![ %HTML.pSeparator [ |
<![ %HTML.Recommended [ |
| 141 |
<!ENTITY % obsolete-htext "| %htext"> |
<!ENTITY % linkName "ID"> |
| 142 |
<!ENTITY % block-p ""> |
]]> |
|
]]> |
|
|
<!ENTITY % obsolete-htext "| A"> |
|
|
<!ENTITY % block-p "| P "> |
|
| 143 |
|
|
| 144 |
<!ENTITY % block "HR | %list | DL |
<!ENTITY % linkName "CDATA"> |
|
| %pre | BLOCKQUOTE | ADDRESS |
|
|
%block-form %block-p"> |
|
| 145 |
|
|
| 146 |
|
<!ENTITY % linkType "NAME" |
| 147 |
|
-- a list of these will be specified at a later date --> |
| 148 |
|
|
| 149 |
<![ %HTML.bodyBlockOnly [ |
<!ENTITY % linkExtraAttributes |
| 150 |
<!ENTITY % current-htext ""> |
"REL %linkType #IMPLIED |
| 151 |
]]> |
REV %linkType #IMPLIED |
| 152 |
<!ENTITY % current-htext "| %htext"> |
URN CDATA #IMPLIED |
| 153 |
|
TITLE CDATA #IMPLIED |
| 154 |
|
METHODS NAMES #IMPLIED |
| 155 |
|
"> |
| 156 |
|
|
| 157 |
<!ENTITY % body-content "%heading | %block %current-htext"> |
<![ %HTML.Recommended [ |
| 158 |
<!ELEMENT BODY O O (%body-content)*> |
<!ENTITY % A.content "(%text)+" |
| 159 |
|
-- <H1><a name="xxx">Heading</a></H1> |
| 160 |
|
is preferred to |
| 161 |
|
<a name="xxx"><H1>Heading</H1></a> |
| 162 |
|
--> |
| 163 |
|
]]> |
| 164 |
|
|
| 165 |
|
<!ENTITY % A.content "(%heading|%text)+"> |
| 166 |
|
|
| 167 |
<!ELEMENT A - - (%heading|%block|%text)+ -(A) |
<!ELEMENT A - - %A.content -(A)> |
|
-- @# Technically, this allows silliness like: |
|
|
<H2><A>xyz<H1>h1</H1></A></H2> |
|
|
The right way to do anchors outside of %htext is more like: |
|
|
<as id=z1><H2>lkjlkj</h2><ae start=z1> |
|
|
--> |
|
| 168 |
<!ATTLIST A |
<!ATTLIST A |
| 169 |
%linkattributes; |
HREF %URI #IMPLIED |
| 170 |
|
NAME %linkName #IMPLIED |
| 171 |
|
%linkExtraAttributes; |
| 172 |
> |
> |
| 173 |
|
<!-- <A> Anchor; source and/or destination of a link --> |
| 174 |
|
<!-- <A NAME="..."> Name of this anchor --> |
| 175 |
|
<!-- <A HREF="..."> Address of link destination --> |
| 176 |
|
<!-- <A URN="..."> Permanent address of destination --> |
| 177 |
|
<!-- <A REL=...> Relationship of this anchor to destination --> |
| 178 |
|
<!-- <A REV=...> Relationship of destination to this anchor --> |
| 179 |
|
<!-- <A TITLE="..."> Title of destination (advisory) --> |
| 180 |
|
<!-- <A METHODS="..."> Operations allowed on destination (advisory) --> |
| 181 |
|
|
| 182 |
|
|
| 183 |
<!ELEMENT IMG - O EMPTY -- Embedded image --> |
<!--=================== Images ============================================--> |
| 184 |
|
|
| 185 |
|
<!ELEMENT IMG - O EMPTY> |
| 186 |
<!ATTLIST IMG |
<!ATTLIST IMG |
| 187 |
SRC %URI; #IMPLIED -- URI of document to embed -- |
SRC %URI; #REQUIRED |
| 188 |
ALT CDATA #IMPLIED |
ALT CDATA #IMPLIED |
| 189 |
ALIGN (top|middle|bottom) #IMPLIED |
ALIGN (top|middle|bottom) #IMPLIED |
| 190 |
ISMAP (ISMAP) #IMPLIED |
ISMAP (ISMAP) #IMPLIED |
| 191 |
> |
> |
| 192 |
|
|
| 193 |
|
<!-- <IMG> Image; icon, glyph or illustration --> |
| 194 |
|
<!-- <IMG SRC="..."> Address of image object --> |
| 195 |
|
<!-- <IMG ALT="..."> Textual alternative --> |
| 196 |
|
<!-- <IMG ALIGN=...> Position relative to text --> |
| 197 |
|
<!-- <IMG ISMAP> Each pixel can be a link --> |
| 198 |
|
|
| 199 |
<![ %HTML.pSeparator [ <!ENTITY % p-content "EMPTY"> ]]> |
<!--=================== Paragraphs=========================================--> |
|
<!ENTITY % p-content "(%htext)+"> |
|
|
<!ELEMENT P - O %p-content> |
|
|
<!ELEMENT HR - O EMPTY -- horizontal rule --> |
|
|
<!ELEMENT BR - O EMPTY -- @# BR -> &br; --> |
|
| 200 |
|
|
| 201 |
<!ELEMENT ( %heading ) - - (%htext;)+> |
<!ELEMENT P - O (%text)+> |
| 202 |
|
<!-- <P> Paragraph --> |
| 203 |
|
|
|
<!ELEMENT DL - - (DT*, DD?)+> |
|
|
<!ATTLIST DL |
|
|
COMPACT (COMPACT) #IMPLIED> |
|
| 204 |
|
|
| 205 |
<!ELEMENT DT - O (%htext)+> |
<!--=================== Headings, Titles, Sections ========================--> |
| 206 |
<!ELEMENT DD - O (%htext|%block)+> |
|
| 207 |
|
<!ELEMENT HR - O EMPTY> |
| 208 |
|
<!-- <HR> Horizontal rule --> |
| 209 |
|
|
| 210 |
|
<!ELEMENT ( %heading ) - - (%text;)+> |
| 211 |
|
<!-- <H1> Heading, level 1 --> |
| 212 |
|
<!-- <H2> Heading, level 2 --> |
| 213 |
|
<!-- <H3> Heading, level 3 --> |
| 214 |
|
<!-- <H4> Heading, level 4 --> |
| 215 |
|
<!-- <H5> Heading, level 5 --> |
| 216 |
|
<!-- <H6> Heading, level 6 --> |
| 217 |
|
|
| 218 |
|
|
| 219 |
<!ELEMENT (%list) - - (LI)+> |
<!--=================== Text Flows ========================================--> |
| 220 |
|
|
| 221 |
<!ELEMENT LI - O (%htext|%block)+> |
<![ %HTML.Forms [ |
| 222 |
|
<!ENTITY % block.forms "| FORM | ISINDEX"> |
| 223 |
|
]]> |
| 224 |
|
|
| 225 |
|
<!ENTITY % block.forms ""> |
| 226 |
|
|
| 227 |
|
<![ %HTML.Deprecated [ |
| 228 |
|
<!ENTITY % preformatted "PRE | XMP | LISTING"> |
| 229 |
|
]]> |
| 230 |
|
|
| 231 |
|
<!ENTITY % preformatted "PRE"> |
| 232 |
|
|
| 233 |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
<!ENTITY % block "P | %list | DL |
| 234 |
-- for quoting some other source --> |
| %preformatted |
| 235 |
|
| BLOCKQUOTE %block.forms"> |
| 236 |
|
|
| 237 |
<!ELEMENT ADDRESS - - (%htext;|%block)+> |
<!ENTITY % flow "(%text|%block)*"> |
| 238 |
|
|
| 239 |
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
<!ENTITY % pre.content "#PCDATA | A | HR | BR"> |
| 240 |
|
<!ELEMENT PRE - - (%pre.content)+> |
| 241 |
<!ATTLIST PRE |
<!ATTLIST PRE |
| 242 |
WIDTH NUMBER #implied |
WIDTH NUMBER #implied |
| 243 |
> |
> |
| 244 |
|
|
| 245 |
<!-- Mnemonic character entities. --> |
<!-- <PRE> Preformatted text --> |
| 246 |
|
<!-- <PRE WIDTH=...> Maximum characters per line --> |
| 247 |
|
|
| 248 |
<!ENTITY % ISOlat1 PUBLIC |
<![ %HTML.Deprecated [ |
| 249 |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
|
| 250 |
%ISOlat1; |
<!ENTITY % literal "CDATA" |
| 251 |
|
-- historical, non-conforming parsing mode where |
| 252 |
|
the only markup signal is the end tag |
| 253 |
|
in full |
| 254 |
|
--> |
| 255 |
|
|
| 256 |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
<!ELEMENT (XMP|LISTING) - - %literal> |
| 257 |
<!ENTITY amp CDATA "&" -- ampersand --> |
<!-- <XMP> Example section --> |
| 258 |
<!ENTITY gt CDATA ">" -- greater than --> |
<!-- <LISTING> Computer listing --> |
|
<!ENTITY lt CDATA "<" -- less than --> |
|
|
<!ENTITY quot CDATA """ -- double quote --> |
|
| 259 |
|
|
| 260 |
<!-- Processing Entities --> |
<!ELEMENT PLAINTEXT - O %literal> |
| 261 |
|
<!-- <PLAINTEXT> Plain text passage --> |
| 262 |
|
|
| 263 |
<!ENTITY nbsp "<? nonbreaking-space>"> |
]]> |
|
<!-- @# should add entites for processing instructions |
|
|
for line break, centering, etc. --> |
|
| 264 |
|
|
| 265 |
|
|
| 266 |
<!-- Forms --> |
<!--=================== Lists =============================================--> |
| 267 |
<![ %HTML.forms [ |
|
| 268 |
|
<!ELEMENT DL - - (DT | DD)+> |
| 269 |
|
<!ATTLIST DL |
| 270 |
|
COMPACT (COMPACT) #IMPLIED> |
| 271 |
|
|
| 272 |
|
<!ELEMENT DT - O (%text)+> |
| 273 |
|
<!ELEMENT DD - O %flow> |
| 274 |
|
|
| 275 |
|
<!-- <DL> Definition list, or glossary --> |
| 276 |
|
<!-- <DL COMPACT> Compact style list --> |
| 277 |
|
<!-- <DT> Term in definition list --> |
| 278 |
|
<!-- <DD> Definition of term --> |
| 279 |
|
|
| 280 |
|
<!ELEMENT (OL|UL) - - (LI)+> |
| 281 |
|
<!ELEMENT (DIR|MENU) - - (LI)+ -(%block)> |
| 282 |
|
<!ATTLIST (%list) |
| 283 |
|
COMPACT (COMPACT) #IMPLIED> |
| 284 |
|
<!-- <UL> Unordered list --> |
| 285 |
|
<!-- <UL COMPACT> Compact list style --> |
| 286 |
|
<!-- <OL> Ordered, or numbered list --> |
| 287 |
|
<!-- <OL COMPACT> Compact list style --> |
| 288 |
|
<!-- <DIR> Directory list --> |
| 289 |
|
<!-- <DIR COMPACT> Compact list style --> |
| 290 |
|
<!-- <MENU> Menu list --> |
| 291 |
|
<!-- <MENU COMPACT> Compact list style --> |
| 292 |
|
|
| 293 |
|
<!ELEMENT LI - O %flow> |
| 294 |
|
|
| 295 |
|
<!-- <LI> List item --> |
| 296 |
|
|
| 297 |
|
<!--=================== Document Body =====================================--> |
| 298 |
|
|
| 299 |
|
<![ %HTML.Recommended [ |
| 300 |
|
<!ENTITY % body.content "(%heading|%block|HR|ADDRESS)*" |
| 301 |
|
-- <h1>Heading</h1> |
| 302 |
|
<p>Text ... |
| 303 |
|
is preferred to |
| 304 |
|
<h1>Heading</h1> |
| 305 |
|
Text ... |
| 306 |
|
--> |
| 307 |
|
]]> |
| 308 |
|
|
| 309 |
|
<!ENTITY % body.content "(%heading | %text | %block | HR | ADDRESS)*"> |
| 310 |
|
|
| 311 |
<!ENTITY % HTTP-Method "(GET | POST)"> |
<!ELEMENT BODY O O %body.content> |
| 312 |
<!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)> |
<!-- <BODY> Document body --> |
| 313 |
|
|
| 314 |
|
<!ELEMENT BLOCKQUOTE - - %body.content> |
| 315 |
|
<!-- <BLOCKQUOTE> Quoted passage --> |
| 316 |
|
|
| 317 |
|
<!ELEMENT ADDRESS - - (%text|P)*> |
| 318 |
|
<!-- <ADDRESS> Address, signature, or byline for document or passage --> |
| 319 |
|
|
| 320 |
|
|
| 321 |
|
<!--================ Forms ===============================================--> |
| 322 |
|
|
| 323 |
|
<![ %HTML.Forms [ |
| 324 |
|
|
| 325 |
|
<!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)> |
| 326 |
<!ATTLIST FORM |
<!ATTLIST FORM |
| 327 |
ACTION %URI #REQUIRED |
ACTION %URI #IMPLIED |
| 328 |
METHOD %HTTP-Method #IMPLIED -- @# MAILTO? -- |
METHOD (%HTTP-Method) GET |
| 329 |
ENCTYPE %Content-Type; #IMPLIED |
ENCTYPE %Content-Type; "application/x-www-form-urlencoded" |
| 330 |
> |
> |
| 331 |
|
|
| 332 |
|
<!-- <FORM> Fill-out or data-entry form --> |
| 333 |
|
<!-- <FORM ACTION="..."> Address for completed form --> |
| 334 |
|
<!-- <FORM METHOD=...> Method of submitting form --> |
| 335 |
|
<!-- <FORM ENCTYPE="..."> Representation of form data --> |
| 336 |
|
|
| 337 |
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
| 338 |
RADIO | SUBMIT | RESET | |
RADIO | SUBMIT | RESET | |
| 339 |
IMAGE | HIDDEN )"> |
IMAGE | HIDDEN )"> |
| 340 |
<!ELEMENT INPUT - O EMPTY> |
<!ELEMENT INPUT - O EMPTY> |
| 341 |
<!ATTLIST INPUT |
<!ATTLIST INPUT |
| 342 |
TYPE %InputType #IMPLIED -- @# defaults to TEXT?? -- |
TYPE %InputType TEXT |
| 343 |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
NAME CDATA #IMPLIED |
| 344 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 345 |
SRC %URI #IMPLIED -- for image inputs -- |
SRC %URI #IMPLIED |
| 346 |
CHECKED (CHECKED) #IMPLIED |
CHECKED (CHECKED) #IMPLIED |
| 347 |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
SIZE CDATA #IMPLIED |
| 348 |
MAXLENGTH NUMBER #IMPLIED |
MAXLENGTH NUMBER #IMPLIED |
| 349 |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
ALIGN (top|middle|bottom) #IMPLIED |
| 350 |
> |
> |
| 351 |
|
|
| 352 |
|
<!-- <INPUT> Form input datum --> |
| 353 |
|
<!-- <INPUT TYPE=...> Type of input interaction --> |
| 354 |
|
<!-- <INPUT TYPE=...> Name of form datum --> |
| 355 |
|
<!-- <INPUT VALUE="..."> Default/initial/selected value --> |
| 356 |
|
<!-- <INPUT SRC="..."> Address of image --> |
| 357 |
|
<!-- <INPUT CHECKED> Initial state is "on" --> |
| 358 |
|
<!-- <INPUT SIZE=...> Field size hint --> |
| 359 |
|
<!-- <INPUT MAXLENGTH=...> Data length maximum --> |
| 360 |
|
<!-- <INPUT ALIGN=...> Image alignment --> |
| 361 |
|
|
| 362 |
<!ELEMENT SELECT - - (OPTION+)> |
<!ELEMENT SELECT - - (OPTION+)> |
| 363 |
<!ATTLIST SELECT |
<!ATTLIST SELECT |
| 364 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
| 366 |
MULTIPLE (MULTIPLE) #IMPLIED |
MULTIPLE (MULTIPLE) #IMPLIED |
| 367 |
> |
> |
| 368 |
|
|
| 369 |
|
<!-- <SELECT> Selection of option(s) --> |
| 370 |
|
<!-- <SELECT NAME=...> Name of form datum --> |
| 371 |
|
<!-- <SELECT SIZE=...> Number of options displayed at a time --> |
| 372 |
|
<!-- <SELECT MULTIPLE> Multiple selections allowed --> |
| 373 |
|
|
| 374 |
<!ELEMENT OPTION - O (#PCDATA)> |
<!ELEMENT OPTION - O (#PCDATA)> |
| 375 |
<!ATTLIST OPTION |
<!ATTLIST OPTION |
| 376 |
SELECTED (SELECTED) #IMPLIED |
SELECTED (SELECTED) #IMPLIED |
| 377 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 378 |
> |
> |
| 379 |
|
|
| 380 |
|
<!-- <OPTION> A selection option --> |
| 381 |
|
<!-- <OPTION SELECTED> Initial state --> |
| 382 |
|
<!-- <OPTION VALUE> Form datum value for this option --> |
| 383 |
|
|
| 384 |
<!ELEMENT TEXTAREA - - (#PCDATA)> |
<!ELEMENT TEXTAREA - - (#PCDATA)> |
| 385 |
<!ATTLIST TEXTAREA |
<!ATTLIST TEXTAREA |
| 386 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
| 387 |
ROWS NUMBER #REQUIRED -- @#implied? -- |
ROWS NUMBER #REQUIRED |
| 388 |
COLS NUMBER #REQUIRED |
COLS NUMBER #REQUIRED |
| 389 |
> |
> |
| 390 |
|
|
| 391 |
|
<!-- <TEXTAREA> An area for text input --> |
| 392 |
|
<!-- <TEXTAREA NAME=...> Name of form datum --> |
| 393 |
|
<!-- <TEXTAREA ROWS=...> Height of area --> |
| 394 |
|
<!-- <TEXTAREA COLS=...> Width of area --> |
| 395 |
|
|
| 396 |
]]> |
]]> |
| 397 |
|
|
|
<!-- Obsolete Elements --> |
|
| 398 |
|
|
| 399 |
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
<!--================ Document Head ========================================--> |
| 400 |
<!ENTITY % lit-content "RCDATA"> |
|
| 401 |
<!ELEMENT (%literal) - - %lit-content> |
<!ENTITY % head.link "& LINK*"> |
| 402 |
|
|
| 403 |
<![ %HTML.PLAINTEXT [ |
<![ %HTML.Recommended [ |
| 404 |
<!ELEMENT PLAINTEXT - O EMPTY> |
<!ENTITY % head.nextid ""> |
| 405 |
]]> |
]]> |
| 406 |
|
<!ENTITY % head.nextid "& NEXTID?"> |
| 407 |
|
|
| 408 |
|
<!ENTITY % head.content "TITLE & ISINDEX? & BASE? & META* |
| 409 |
|
%head.nextid |
| 410 |
|
%head.link"> |
| 411 |
|
|
| 412 |
|
<!ELEMENT HEAD O O (%head.content)> |
| 413 |
|
<!-- <HEAD> Document head --> |
| 414 |
|
|
| 415 |
|
<!ELEMENT TITLE - - (#PCDATA)> |
| 416 |
|
<!-- <TITLE> Title of document --> |
| 417 |
|
|
| 418 |
|
<!ELEMENT LINK - O EMPTY> |
| 419 |
|
<!ATTLIST LINK |
| 420 |
|
HREF %URI #REQUIRED |
| 421 |
|
%linkExtraAttributes; > |
| 422 |
|
<!-- <LINK> Link from this document --> |
| 423 |
|
<!-- <LINK HREF="..."> Address of link destination --> |
| 424 |
|
<!-- <LINK URN="..."> Lasting name of destination --> |
| 425 |
|
<!-- <LINK REL=...> Relationship of this document to destination --> |
| 426 |
|
<!-- <LINK REV=...> Relationship of destination to this document --> |
| 427 |
|
<!-- <LINK TITLE="..."> Title of destination (advisory) --> |
| 428 |
|
<!-- <LINK METHODS="..."> Operations allowed on destination (advisory) --> |
| 429 |
|
|
| 430 |
|
<!ELEMENT ISINDEX - O EMPTY> |
| 431 |
|
<!-- <ISINDEX> Document is a searchable index --> |
| 432 |
|
|
| 433 |
|
<!ELEMENT BASE - O EMPTY> |
| 434 |
|
<!ATTLIST BASE |
| 435 |
|
HREF %URI; #REQUIRED |
| 436 |
|
> |
| 437 |
|
<!-- <BASE> Base context document --> |
| 438 |
|
<!-- <BASE HREF="..."> Address for this document --> |
| 439 |
|
|
| 440 |
|
<!ELEMENT NEXTID - O EMPTY> |
| 441 |
|
<!ATTLIST NEXTID N %linkName #REQUIRED> |
| 442 |
|
<!-- <NEXTID> Next ID to use for link name --> |
| 443 |
|
<!-- <NEXTID N=...> Next ID to use for link name --> |
| 444 |
|
|
| 445 |
|
<!ELEMENT META - O EMPTY> |
| 446 |
|
<!ATTLIST META |
| 447 |
|
HTTP-EQUIV NAME #IMPLIED |
| 448 |
|
NAME NAME #IMPLIED |
| 449 |
|
CONTENT CDATA #REQUIRED |
| 450 |
|
> |
| 451 |
|
<!-- <META> Generic Metainformation --> |
| 452 |
|
<!-- <META HTTP-EQUIV=...> HTTP response header name --> |
| 453 |
|
<!-- <META HTTP-EQUIV=...> Metainformation name --> |
| 454 |
|
<!-- <META CONTENT="..."> Associated information --> |
| 455 |
|
|
| 456 |
|
<!--================ Document Structure ===================================--> |
| 457 |
|
|
| 458 |
|
<![ %HTML.Deprecated [ |
| 459 |
|
<!ENTITY % html.content "HEAD, BODY, PLAINTEXT?"> |
| 460 |
|
]]> |
| 461 |
|
<!ENTITY % html.content "HEAD, BODY"> |
| 462 |
|
|
| 463 |
|
<!ELEMENT HTML O O (%html.content)> |
| 464 |
|
<!ENTITY % version.attr "VERSION CDATA #FIXED "%HTML.Version;""> |
| 465 |
|
|
| 466 |
|
<!ATTLIST HTML |
| 467 |
|
%version.attr; |
| 468 |
|
> |
| 469 |
|
|
| 470 |
|
<!-- <HTML> HyperText Markup Language Document --> |
| 471 |
|
<!-- <HTML VERSION="..."> Version of HTML specification --> |
| 472 |
|
|
| 473 |
|
|