Microsoft KB Archive/182669

= PRB: HTML Stops Displaying When a '<' Is Within  Tags =

Article ID: 182669

Article Last Modified on 5/11/2006

-

APPLIES TO


 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Explorer 3.01
 * Microsoft Internet Explorer 3.02

-



This article was previously published under Q182669



SYMPTOMS
If you place a less-than symbol, "<", inside a pair of preformatting tags (), the HTML stops displaying at the point where the "<" is listed in Internet Explorer 3.0x.



RESOLUTION
To work around this problem, either use  instead of  or use &lt instead of "<". Please note that  is considered obsolete by the World Wide Web Consortium (W3C) and may not be supported in future versions of Internet Explorer. For sample code that demonstrates these workarounds, see the "More Information" section.



MORE INFORMATION
Text placed within a preformatted section of HTML using  is usually displayed as-is, without any formatting. If the Web page that contains this preformatted text contains a less-than symbol (<) and the page is displayed in Internet Explorer 3.0x, Internet Explorer stops displaying the HTML on the Web page when it reaches the "<". Any HTML that is after the "<" is not displayed, even if it is outside of the preformatted section.

For example, in Internet Exlorer 3.0x, the HTML display stops at the "<":    Some preformatted text x < y      This text will not be displayed  </HTML>

Workaround
There are two workarounds to this problem. Use <XMP> instead of . Please note that <XMP> is considered obsolete by the W3C and may not be supported in future versions of Internet Explorer: <HTML>  <XMP> Some preformatted text x < y     </XMP> This text will be displayed </BODY> </HTML> Or use &lt instead of "<". <HTML>   Some preformatted text x &lt y     </PRE> This text will be displayed </BODY> </HTML>

<div class="references_section">