WD97: HTML Page w/Style Tag Doesn't Display in Internet Explorer

Last reviewed: February 4, 1998
Article ID: Q165406
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

When you save a Word 97 document that contains a style (<STYLE>) tag using the Hypertext Markup Language (HTML) converter, the contents of the page may be not visible when you view the page using Microsoft Internet Explorer version 3.0x. The page may be displayed correctly in other Web browsers.

CAUSE

When Word converts the document to HTML, it adds a space inside the closing style tag </STYLE> between the tag name and the closing bracket. Internet Explorer does not interpret the tag correctly.

WORKAROUND

To correct the problem, remove the space from the closing style tag:

  1. Start Word, and open your HTML document.

  2. On the View menu, click HTML Source.

  3. Find the closing style tag. It looks like this:

    </Style >

    NOTE: The space appears between the tag name and the closing bracket.

  4. Delete the space so that the tag looks like this:

    </Style>

  5. On the HTML toolbar, click Exit HTML Source. When you are asked to save changes, click Yes.

You will now be able to see the page in Microsoft Internet Explorer 3.0x. If you use Word to make additional changes to the HTML document, then when you save the file, Word will save the </Style> tag incorrectly.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The <STYLE> element in the HTML language is used to link to style sheet information. Style sheets allow you to separate presentation definitions from content in HTML documents. Style sheets are very similar to the templates used in Microsoft Word.


Additional query words: 97 8.0
Keywords : kbinterop
Version : 97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.