1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>HTML 2.0 DTD: XMP element</TITLE>
</HEAD>
<BODY>
<H1>XMP</H1>
<p>
The <XMP> and <LISTING> elements are similar to the
<a href="pre.html"><PRE></a> element,
but they have a different syntax. Their content is declared as CDATA,
which means that no markup except the end-tag open delimiter-in-context
is recognized.
</p>
<dl>
<dt>NOTE</dt>
<dd>In a previous draft of the HTML specification, the syntax
of <XMP> and <LISTING> elements allowed closing tags to be treated
as data characters, as long as the tag name was not <XMP> or
<LISTING>, respectively.</dd>
</dl>
<p>
Since CDATA declared content has a number of unfortunate interactions
with processing techniques and tends to be used and implemented
inconsistently, HTML documents should not contain <XMP>
nor <LISTING>
elements -- the
<a href="pre.html"><PRE></a>
tag is more expressive and more consistently
supported.
</p>
<p>
The <LISTING> element should be rendered so that at least 132
characters fit on a line. The <XMP> element should be rendered so
that at least 80 characters fit on a line but is otherwise identical
to the <LISTING> element.
</p>
<dl>
<dt>NOTE</dt>
<dd>In a previous draft, HTML included a <PLAINTEXT> element
that is similar to the <LISTING> element, except that there is no
closing tag: all characters after the <PLAINTEXT> start-tag are
data.</dd>
</dl>
<HR>
<H2>Content</H2>
<UL>
<LI>CDATA</LI>
</UL>
<HR>
<P>
<A HREF="xmp.attr.html"><STRONG>ATTRIBUTES</STRONG></A><BR>
<A HREF="xmp.cont.html"><STRONG>CONTENT DECLARATION</STRONG></A>
</P>
<DL>
<DT><STRONG>Tag Minimization</STRONG><DD>
Open Tag: <EM>REQUIRED</EM><BR>
Close Tag: <EM>REQUIRED</EM><BR>
</DL>
<HR>
<H2>Parent Elements</H2>
<UL COMPACT>
<LI><A HREF="blockquote.html"><STRONG>blockquote</STRONG></A> -- Quoted passage
</LI>
<LI><A HREF="body.html"><STRONG>body</STRONG></A> -- Document body
</LI>
<LI><A HREF="dd.html"><STRONG>dd</STRONG></A> -- Definition of term
</LI>
<LI><A HREF="form.html"><STRONG>form</STRONG></A> -- Fill-out or data-entry form
</LI>
<LI><A HREF="li.html"><STRONG>li</STRONG></A> -- List item
</LI>
</UL>
<HR>
<P>
<A HREF="TOP-ELEM.html"><STRONG>Top Elements</STRONG></A>
<BR>
<A HREF="ALL-ELEM.html"><STRONG>All Elements</STRONG></A>
<BR>
<A HREF="ENTS.html"><STRONG>General Entities</STRONG></A><BR>
<A HREF="DTD-TREE.html#xmp"><STRONG>Tree</STRONG></A>
</P>
<HR>
<ADDRESS>
<A HREF="DTD-HOME.html">HTML 2.0 DTD</A>
</ADDRESS>
</BODY>
</HTML>
|