The first of these methods
Use the <pre></pre> surround code (not in the browser, but in the rich editor can, Strange);
Use <xmp></xmp> Surround code (officially not recommended, but the effect is good oh, both in Firefox and IE can);
Use the <textarea></textarea> surround code (both in the rich editor and in the browser);
<pre> can not be displayed on the page;<xmp> good, feasible;<textarea> is displayed in the Text field, do not achieve the desired effect.
<xmp>
<div> explain the usage of HTML </div>
<div><span id= "Demo" > Miracle </span></div>
</xmp>
If you want to display the complete structure of XML in the Web page, direct output, IE will mistake the XML structure for the structure of HTML, the normal display can only display the values on all nodes, if you want to display the entire result, you can add tags at both ends of the XML <xmp>xml structure </XMP >
Code. <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > .
The second method
< for "<"
> for ">"
"" "" "with " means can also be processed in the background directly output to the page, the code shows the following
Code. <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > .This will allow you to display the full XML information.