WD2000: HTML Table Caption Has Border When File Opened in Word

ID: Q221264


The information in this article applies to:
  • Microsoft Word 2000


SYMPTOMS

When you open an HTML file in Microsoft Word 2000 that contains a table with a border and a caption, the caption has a border. In contrast, if you open the same file in a Web browser, the table caption does not have a border.

For example, if you create the following HTML code in a Notepad file and save the file as a text document with the "htm" extension:


<HTML>
<BODY>
<TABLE BORDER> <CAPTION> Caption for Table A </CAPTION>
<TR>
   <TD>Text</TD>
   <TD>A B C</TD>
   <TD>What a test!</TD>
</TR>
</TABLE>
</BODY>
</HTML> 
when you open the HTML document in Microsoft Word, the caption at the top of the table is bordered, as in the following example:

Caption for Table A

Text

A B C

What a test!


CAUSE

Word converts the caption into a table cell and applies the border to it.


WORKAROUND

If you do not want the border around the caption, but you plan to share the file by using a Web browser, you do not need to do anything. The caption will appear above or below the table, without a border, when opened in a Web browser.

If you plan to share the file with other Word users and you do not want the caption to appear inside a bordered table cell, place the caption outside of the table. To do this, follow these steps:

  1. Open the file in Word.


  2. Select the table caption row and delete it. On the Table menu, point to Delete, and then click Rows.


  3. Insert a new caption. To do this, click Caption on the Insert menu.


  4. In the Caption dialog box, type the caption you want. Select the options you want and then click OK.


  5. Save the file.



STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

The caption is an HTML element that can be placed immediately after the table tag. In HTML, a caption appears either above or below the table.

Additional query words: bordered incorrect wrong import imported

Keywords : kbdta wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: November 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.