Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

When I use Microsoft Word to make web pages, why is the resulting code so long?

When using Microsoft Word to create a web page, the Save as Web Page option does not output pure HTML, but instead adds special tags designed for Microsoft Office, as well as XML (Extensible Markup Language) and CSS (Cascading Style Sheet) tags. These can almost double the length of your document.

Microsoft provides an HTML filter to strip Office-specific code from HTML documents, creating much cleaner coding. To use it, from the File menu (most versions of Word) or Office Button menu (Word 2007 only), select Save As... to save your document. Then, under "Save as type:", select Web Page, Filtered.

Note: No HTML filter currently exists for Macintosh versions of Word.

After you have installed the filter, whenever you use Word to convert your file to HTML, use Export to HTML instead of Save as Web Page. You can also use Export to HTML to convert existing files. This can be helpful if you have old files containing Office-specific code you wish to clean up.

This is document aiai in domain all.
Last modified on April 28, 2010.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.