OptimizeHTMLFlags Property

Microsoft FrontPage Visual Basic

Show All Show All

OptimizeHTMLFlags Property

Returns or sets an FpOptimizeHTMLFlags constant that represents how the HyperText Markup Language (HTML) is optimized in a Web page.

FpOptimizeHTMLFlags can be one or more of the following FpOptimizeHTMLFlags constants.
fpHtmlOptAdjacentTagsCombines adjacent elements of the same type.
fpHtmlOptAuthorComponentsRemoves Author-Time FrontPage Web component comments.
fpHtmlOptBrowseComponentsRemoves Browse-Time FrontPage Web component comments.
fpHtmlOptCellFormattingAttrRemoves cell formatting sttributes.
fpHtmlOptDwtCmntsRemoves Dynamic Web Template comments.
fpHtmlOptEmptyRemoves empty tags.
fpHtmlOptGeneratorRemoves META elements that contain Generator and Programatic Identifier information.
fpHtmlOptHTMLAllWhitespaceRemoves all white spaces that don't affect rendering.
fpHtmlOptHTMLCmntsRemoves all other HTML comments.
fpHtmlOptHTMLLeadWhitespaceRemoves leading white spaces from each line.
fpHtmlOptHTMLMisnestRemoves incorrectly nested tags.
fpHtmlOptOnEnables optimization.
fpHtmlOptScriptCmntsRemoves script comments.
fpHtmlOptThemesRemoves theme comments.
fpHtmlOptTrcImageAttrRemoves image tracing attributes from the BODY element.
fpHtmlOptUnusedStylesRemoves unused styles.
fpHtmlOptVMLGraphicsRemoves Vector Markup Language (VML) from a page that uses Office drawings and WordArt.
fpHtmlOptWordHTMLRemoves 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 an ampersand (&).

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