WD97: Tab Character Appears as Space in Web Browser

Last reviewed: March 6, 1998
Article ID: Q172748
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

In Microsoft Word 97, when you save a document that contains tabs as HTML, the tab characters may appear as a single space if you view the document in a Web browser.

CAUSE

Word converts tabs into the HTML code for tab characters: "	" (without the quotation marks). However, most Web browsers display tabs as a single space.

WORKAROUND

To work around this problem, use a table or indents to layout text, instead of tab characters.

MORE INFORMATION

To observe this behavior, create a new document containing the following information:

   1<TAB>fred
   <TAB><TAB>two tabs

where <TAB> is the character produced by pressing the TAB key.

Save the document as HTML. Word converts the text to the following HTML code:

   <P>1&#9;fred</P>
   <P>&#9;&#9;two tabs</P>

NOTE: To view the HTML code, click HTML Source on the View menu.

When viewed in a Web browser, the HTML document may appear as:

   1 fred
   two tabs

REFERENCES

For more information about inserting HTML tags, click the Office Assistant, type "HTML tags," click Search, and then click "Insert HTML markup."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Word Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q120802
   TITLE     : Office: How to Add/Remove a Single Office
               Program or Component

For more information about working with HTML in Word, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q157086
   TITLE     : WD97: Limitations of Converting from Word Format to HTML


Additional query words: 8.0 8.00
Keywords : winword word8 word97 kbwdinternet
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


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: March 6, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.