WD98: Style Changes Not Retained with HTML StylesLast reviewed: February 19, 1998Article ID: Q181315 |
The information in this article applies to:
SYMPTOMSWhen you create a HyperText Markup Language (HTML) document in Microsoft Word 98 Macintosh Edition, any customization of HTML styles are not retained when you save, close and reopen the file, or when you view the document in a Web browser. The text formatted with HTML styles reverts to the default HTML style format.
CAUSEThis behavior is by design. When a document that contains text formatted with any of the HTML styles is saved as HTML, Word only saves the HTML tag of the style and does not save any attributes of the style.
MORE INFORMATIONHTML styles are retained in the HTML code as heading tags. For example, the HTML code for text formatted with the H1 style would look like this:
<H1>This is my heading</H1>When text formatted with an HTML style tag is opened up in a Web browser, the browser displays the text using its built-in definition for the H1 tag, and not how Word defines the H1 style. Therefore, if you modify the HTML styles in Word, the changes will appear on screen, but are not preserved when you save the document as HTML. The following HTML styles do not retain any changes you make to the style:
H1 through H6 Blockquote Cite Code Comment Definition Definition Term Definition List HTML Markup Keyboard Preformatted Sample Typewriter Variable Emphasis Followed Hyperlink Hyperlink StrongThe benefit of using HTML styles in your document is that Word retains the style structure of the document.
How to Retain Formatting in HTML DocumentsTo retain formatting in an HTML Document, use either of the following methods:
REFERENCESFor more information about styles and HTML, click the Office Assistant, type "styles HTML," click Search, and then click one of the topics.
|
Additional query words: macword98 word98
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |