How to Convert Word Document to Source Code

Save

When you convert Microsoft Word to source code, your document is saved as a hypertext markup language (HTML) code, which is used to create web pages. A source code includes special tags, which tell your web browser (Internet Explorer, Firefox) how to render a web page—how to format the text or display line-spacing, images and tables in your content. Word works as a “what you see is what you get” (WYSIWYG) editor and allows you to create a web page without HTML knowledge or programming skills.

Converting Word 2003 Document to Source Code

  • Create your Word document and then select “File” and “Save As.”

  • Change the ".doc" file extension to “Web Page (.htm or .html) under “Save as type” in the “Save As” dialog box. Then click on “Save.” Close the Word document and then select “File” and “Open.”

  • Find the file you saved in Step 2 and make sure the “Save as type” option is set to “All Files (.).”

  • Right-click on the file name and click on “Open With” and “Notepad” or “WordPad.” The source code will be displayed.

Using Email to Convert Word 2003 Document to Source Code

  • Create your Word document. Then copy the text from Word and go to your email software, such as Outlook Express.

  • Click on “New” to open a new message pad and paste the Word text there. Click on the “Source” tab on the bottom of your page. You’ll see the source code on your page.

  • Copy the source code from Outlook Express, then open Notepad and paste it there.

  • Save the notepad document by clicking on “File” and “Save As.” Change the file extension to “.HTM” or “.HTML” and name your file, then click on “Save.”

Tips & Warnings

  • You can use an HTML cleaner to clean up your Word source code (see References).
  • Microsoft Word adds extra code into the source code for a web page.

References

  • Photo Credit Stockbyte/Stockbyte/Getty Images
Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!