PRB: Placing a '<' Within <PRE> in IE3 Stops Display of HTMLLast reviewed: March 19, 1998Article ID: Q182669 |
The information in this article applies to:
SYMPTOMSPlacing a less-than symbol "<" inside a pair of preformatting tags (<PRE></PRE>) causes the HTML to stop displaying at the point where the "<" is listed in Internet Explorer (IE) 3.0x.
RESOLUTIONTo work around this problem, either use <XMP> instead of <PRE> or use < instead of "<". Please note that <XMP> is considered obsolete by the World Wide Web Consortium (W3C) and may not be supported in future versions of Internet Explorer.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONText placed within a preformatted section of HTML using <PRE> 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, IE will stop displaying the HTML on the Web page when it reaches the "<". Any HTML that is after the "<" will not be displayed, even if it is outside of the preformatted section. For example, in IE 3.0x the displaying of this HTML will stop at the "<":
<HTML> <BODY> <PRE> Some preformatted text x < y </PRE> This text will not be displayed </BODY> </HTML>There are two workarounds to this problem. Use <XMP> instead of <PRE>. Please note that <XMP> is considered obsolete by the W3C and may not be supported in future versions of IE:
<HTML> <BODY> <XMP> Some preformatted text x < y </XMP> This text will be displayed </BODY> </HTML>-or- Use < instead of "<".
<HTML> <BODY> <PRE> Some preformatted text x < y </PRE> This text will be displayed </BODY> </HTML> REFERENCESHTML Reference in the Internet Client SDK Help:
http://www.microsoft.com/msdn/sdk/inetsdk/helpW3C HTML Specification: http://www.w3.org
|
Additional query words: PRE XMP
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |