Share via


OptimizeHTMLFlags Property

FpOptimizeHTMLFlags

FpOptimizeHTMLFlags can be one or more of the following FpOptimizeHTMLFlags constants.

fpHtmlOptAdjacentTags Combines adjacent elements of the same type.
fpHtmlOptAuthorComponents Removes Author-Time FrontPage Web component comments.
fpHtmlOptBrowseComponents Removes Browse-Time FrontPage Web component comments.
fpHtmlOptCellFormattingAttr Removes cell formatting sttributes.
fpHtmlOptDwtCmnts Removes Dynamic Web Template comments.
fpHtmlOptEmpty Removes empty tags.
fpHtmlOptGenerator Removes META elements that contain Generator and Programatic Identifier information.
fpHtmlOptHTMLAllWhitespace Removes all white spaces that don't affect rendering.
fpHtmlOptHTMLCmnts Removes all other HTML comments.
fpHtmlOptHTMLLeadWhitespace Removes leading white spaces from each line.
fpHtmlOptHTMLMisnest Removes incorrectly nested tags.
fpHtmlOptOn Enables optimization.
fpHtmlOptScriptCmnts Removes script comments.
fpHtmlOptThemes Removes theme comments.
fpHtmlOptTrcImageAttr Removes image tracing attributes from the BODY element.
fpHtmlOptUnusedStyles Removes unused styles.
fpHtmlOptVMLGraphics Removes Vector Markup Language (VML) from a page that uses Office drawings and WordArt.
fpHtmlOptWordHTML Removes Word-specific HTML markup.

expression.OptimizeHTMLFlags

*expression   * Required. An expression that returns an Application object.

Remarks

Use fpHTMLOptOn to turn optimization on. Specify additional optimization settings by separating each with a plus sign (+).

Example

The following example turns optimization on for the current page and specifies that all Microsoft FrontPage Web component comments are to be removed from the page.

Application.OptimizeHTMLFlags = fpHtmlOptOn _
    + fpHtmlOptAuthorComponents + fpHtmlOptBrowseComponents

Applies to | Application Object