About optimizing code

Microsoft Office FrontPage 2003

About optimizing code

By using the code optimization settings in Microsoft FrontPage, you can reduce the amount of non-standard HTML or other code in your Web pages. This can make it easier to edit pages in Code view. It can also help you reduce the file sizes of your pages and help site visitors open your pages more quickly.

You can optimize your code when you author your pages, when you publish them to your Web site, or both. If you choose to optimize your code when authoring your Web pages, FrontPage removes specific types of code from those pages when you edit them. For example, if you open a Web page you created by using Microsoft Word, FrontPage removes Word-specific code from that page.

If you choose to optimize your code when publishing your Web pages, FrontPage removes specific types of code from those pages only when you publish them to your remote Web site. It maintains that code in the pages on the local site. This means that you can continue to see the code when you're editing the pages in the local site, but you and your site visitors cannot see the code in copies of the pages on the remote site.

You can enable FrontPage to remove these types of code:

  • Style information generated by Microsoft Word
  • Vector Markup Language (VML) graphics generated by the Microsoft Office Drawing Tools
  • Meta tags added by other programs, including Generator and ProgID tags
  • Cell formatting attributes
  • Tracing image attributes
  • Comments for scripts, Dynamic Web Templates, or HTML
  • HTML tags that do not contain content
  • HTML leading white space or all HTML white space

In addition, you can enable FrontPage to merge tags applied to adjacent page elements. For example, if you encounter side-by-side <b> tags in code, such as <b>Example </b><b>1</b>, you can have FrontPage remove the redundant adjacent tags, resulting in the cleaner code <b>Example 1</b>.

Some code optimization settings are designed specifically for authoring Web pages, while others are designed specifically for publishing pages. Therefore, some settings may not be available for both authoring and publishing pages.