Приглашаем посетить
Брюсов (bryusov.lit-info.ru)

Optimizing HTML

Table of Contents Previous Next

Optimizing HTML

Sometimes Web developers leave things in Web pages, such as comments, whitespace, and other HTML attributes, which have no value to visitors. FrontPage allows you to optimize your HTML code when you publish a Web site or Web page or when you are working on a page in Design view. Optimizing HTML code makes the code easier to read and faster to download on the Web. FrontPage is more aggressive optimizing individual pages in Design view. If the changes cause problems you can undo the change.

Optimize Published HTML Code

graphics/1_icon.jpg

Open the Web site you want to optimize, click the View menu' and then click Remote Web Site.

graphics/2_icon.jpg

Click the Remote Web Site Properties button.

graphics/3_icon.jpg

Click the Optimize HTML tab.

graphics/4_icon.jpg

Select the When Publishing, Optimize HTML By Removing The Following Elements check box.

graphics/5_icon.jpg

Click the options you want. Some of the common ones include:

  • All HTML Comments. Select to remove all comments; selects all the comments check boxes.

  • HTML Whitespace. Select either check box to remove leading or all whitespace.

graphics/6_icon.jpg

Click OK.

graphics/12inf03.jpg

Optimize HTML Code in Design View

graphics/1_icon.jpg

Open the Web page in which you want to optimize in Design view.

graphics/2_icon.jpg

Click the Tools menu, and then click Optimize HTML.

graphics/3_icon.jpg

Select the check boxes with the settings you want to optimize. Some of the common options include:

  • All HTML Comments. Select to remove all comments; selects all the comments check boxes.

  • Merge Adjacent Tags. Select to combine multiple tags into one.

  • Empty Tags. Select to remove tags with no content.

  • Unused Styles. Select to remove unused styles.

  • Word HTML. Select to remove extra HTML elements from Microsoft Word.

graphics/4_icon.jpg

Click OK.

graphics/12inf04.jpg

    Table of Contents Previous Next