HTML The Definitive Guide (157 page)

Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

BOOK: HTML The Definitive Guide
8.04Mb size Format: txt, pdf, ePub

Since the Transitional DTD provides the broadest coverage of all HTML elements currently in use, it is the DTD upon which this book is based and the one we reproduce here. Note that we have reprinted this DTD verbatim and have not attempted to add extensions to it. Where our description and the DTD deviate, assume the DTD is correct:

-- Typical usage:

"http://www.w3.org/TR/REC-html40/loose.dtd">


...



...



The URI used as a system identifier with the public identifier allows the user agent to download the DTD and entity sets as needed.

The FPI for the Strict HTML 4.0 DTD is:

"-//W3C//DTD HTML 4.0//EN"

and its URI is:

http://www.w3.org/TR/REC-html40/strict.dtd Authors should use the Strict DTD unless they need the presentation control for user agents that don't (adequately) support style sheets.

If you are writing a document that includes frames, use the following FPI:

"-//W3C//DTD HTML 4.0 Frameset//EN"

with the URI:

http://www.w3.org/TR/REC-html40/frameset.dtd The following URIs are supported in relation to HTML 4.0

"http://www.w3.org/TR/REC-html40/strict.dtd" (Strict DTD) "http://www.w3.org/TR/REC-html40/loose.dtd" (Loose DTD) "http://www.w3.org/TR/REC-html40/frameset.dtd" (Frameset DTD) "http://www.w3.org/TR/REC-html40/HTMLlat1.ent" (Latin-1 entities) "http://www.w3.org/TR/REC-html40/HTMLsymbol.ent" (Symbol entities) "http://www.w3.org/TR/REC-html40/HTMLspecial.ent" (Special entities) These URIs point to the latest version of each file. To reference this specific revision use the following URIs: "http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd"

"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd"

"http://www.w3.org/TR/1998/REC-html40-19980424/frameset.dtd"

"http://www.w3.org/TR/1998/REC-html40-19980424/HTMLlat1.ent"

"http://www.w3.org/TR/1998/REC-html40-19980424/HTMLsymbol.ent"

"http://www.w3.org/TR/1998/REC-html40-19980424/HTMLspecial.ent"

-->

-- media type, as per [RFC2045]

-->

-- comma-separated list of media types, as per [RFC2045]

-->

-- a character encoding, as per [RFC2045]

-->

-- a space separated list of character encodings, as per [RFC2045]

-->

-- a language code, as per [RFC1766]

-->

-- a single character from [ISO10646]

-->

-- space-separated list of link types

-->

-- single or comma-separated list of media descriptors -->

-- a Uniform Resource Identifier,

see [URI]

-->




bgcolor %Color; #IMPLIED -- document background color --

text %Color; #IMPLIED -- document text color --

link %Color; #IMPLIED -- color of links --

vlink %Color; #IMPLIED -- color of visited links --

alink %Color; #IMPLIED -- color of selected links --

">

"-//W3C//ENTITIES Latin1//EN//HTML"

"http://www.w3.org/TR/1998/REC-html40-19980424/HTMLlat1.ent"> %HTMLlat1;

"-//W3C//ENTITIES Symbols//EN//HTML"

"http://www.w3.org/TR/1998/REC-html40-19980424/HTMLsymbol.ent"> %HTMLsymbol;

"-//W3C//ENTITIES Special//EN//HTML"

"http://www.w3.org/TR/1998/REC-html40-19980424/HTMLspecial.ent"> %HTMLspecial;

"id ID #IMPLIED -- document-wide unique id --

class CDATA #IMPLIED -- space separated list of classes --

style %StyleSheet; #IMPLIED -- associated style info --

title %Text; #IMPLIED -- advisory title/amplification --"

>

"lang %LanguageCode; #IMPLIED -- language code --

dir (ltr|rtl) #IMPLIED -- direction for weak/neutral text --"

>

"onclick %Script; #IMPLIED -- a pointer button was clicked --

ondblclick %Script; #IMPLIED -- a pointer button was double clicked--

onmousedown %Script; #IMPLIED -- a pointer button was pressed down --

onmouseup %Script; #IMPLIED -- a pointer button was released --

onmouseover %Script; #IMPLIED -- a pointer was moved onto --

onmousemove %Script; #IMPLIED -- a pointer was moved within --

onmouseout %Script; #IMPLIED -- a pointer was moved away --

onkeypress %Script; #IMPLIED -- a key was pressed and released --

onkeydown %Script; #IMPLIED -- a key was pressed down --

onkeyup %Script; #IMPLIED -- a key was released --"

>


"datasrc %URI; #IMPLIED -- a single or tabular Data Source --

datafld CDATA #IMPLIED -- the property or column name --

dataformatas (plaintext|html) plaintext -- text or html --"

>

]]>


-- default is left for ltr paragraphs, right for rtl --

>

"TT | I | B | U | S | STRIKE | BIG | SMALL">

SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >

"A | IMG | APPLET | OBJECT | FONT | BASEFONT | BR | SCRIPT |

MAP | Q | SUB | SUP | SPAN | BDO | IFRAME">

%attrs; -- %coreattrs, %i18n, %events --

>

%attrs; -- %coreattrs, %i18n, %events --

>

%attrs; -- %coreattrs, %i18n, %events --

%reserved; -- reserved for possible future use --

>

%coreattrs; -- id, class, style, title --

lang %LanguageCode; #IMPLIED -- language code --

dir (ltr|rtl) #REQUIRED -- directionality --

>

id ID #IMPLIED -- document-wide unique id --

size CDATA #REQUIRED -- base font size for FONT elements --

color %Color; #IMPLIED -- text color --

face CDATA #IMPLIED -- comma separated list of font names --

>

%coreattrs; -- id, class, style, title --

%i18n; -- lang, dir --

size CDATA #IMPLIED -- [+|-]nn
e.g.
size="+1", size="4" --

color %Color; #IMPLIED -- text color --

face CDATA #IMPLIED -- comma separated list of font names --

>

%coreattrs; -- id, class, style, title --

clear (left|all|right|none) none -- control of text flow --

>


"P | %heading; | %list; | %preformatted; | DL | DIV | CENTER |

NOSCRIPT | NOFRAMES | BLOCKQUOTE | FORM | ISINDEX | HR |

TABLE | FIELDSET | ADDRESS">

%attrs; -- %coreattrs, %i18n, %events --

onload %Script; #IMPLIED -- the document has been loaded --

onunload %Script; #IMPLIED -- the document has been removed --

background %URI; #IMPLIED -- texture tile for document background --

%bodycolors; -- bgcolor, text, link, vlink, alink --

>

%attrs; -- %coreattrs, %i18n, %events --

>

%attrs; -- %coreattrs, %i18n, %events --

%align; -- align, text alignment --

%reserved; -- reserved for possible future use --

>

%attrs; -- %coreattrs, %i18n, %events --

>

%attrs; -- %coreattrs, %i18n, %events --

charset %Charset; #IMPLIED -- char encoding of linked resource --

type %ContentType; #IMPLIED -- advisory content type --

name CDATA #IMPLIED -- named link end --

href %URI; #IMPLIED -- URI for linked resource --

hreflang %LanguageCode; #IMPLIED -- language code --

target %FrameTarget; #IMPLIED -- render in this frame --

rel %LinkTypes; #IMPLIED -- forward link types --

rev %LinkTypes; #IMPLIED -- reverse link types --

accesskey %Character; #IMPLIED -- accessibility key character --

shape %Shape; rect -- for use with client-side image maps --

coords %Coords; #IMPLIED -- for use with client-side image maps --

tabindex NUMBER #IMPLIED -- position in tabbing order --

onfocus %Script; #IMPLIED -- the element got the focus --

onblur %Script; #IMPLIED -- the element lost the focus --

>

Other books

Death by Jealousy by Jaden Skye
Conversations with a Soul by McArthur, Tom
Mindf**k by Fanie Viljoen
Oracle by Kyra Dune
Dream On by Gilda O'Neill
The Physics of War by Barry Parker
Rimfire Bride by Sara Luck
Merry Cowboy Christmas by Carolyn Brown