Can you create a html file in microsoft word?

IN THIS TASK

Summary

This article describes how to create an HTML document by using Word 2003, including items such as typing text and adding images and hyperlinks to your HTML document.
back to the top

Create Your HTML Document

To create your new HTML document, use one of the following two methods.

Method 1

  1. Start Word 2003.

  2. In the New Document task pane, click
    Web Page under New.

  3. Click File, and then click
    Save.

    Note The Save as type box uses Single File Web Page (*.mht; *.mhtml), or you can switch to Web Page (*.htm, *.html).

  4. In the File name box, type the file name that you want for your document, and then click
    Save.

Method 2

  1. Start Word 2003.

  2. Click File, and then click Save as Web Page.

  3. In the File name box, type the file name that you want for your document, and then click Save.

back to the top

  1. Open the HTML document that you created earlier in this article. To do this, follow these steps:

    1. Click File, and then click
      Open.

    2. Locate your saved article, in the "Create Your HTML Document" section of this article.

    3. Click the file, and then click Open.

  2. Type the following text in the document:

    You can use Microsoft Word to create HTML documents as easily as you can create plain Word documents.

  3. To create a hyperlink, in the text that you typed, click the words Microsoft Word.

  4. On the Insert menu, click
    Hyperlink.

  5. In the Insert Hyperlink dialog box, type
    http://www.microsoft.com/word in the
    Address box, and then click OK.

  6. Save your changes to the document.

back to the top

Add an Image to Your HTML Document

  1. Put your insertion point where you want the image to be in your document.

  2. Click Insert, point to
    Picture, and then click ClipArt.

  3. In the ClipArt task pane, click
    Search.

    Note If you click Search without typing anything in the Search Text box, the search result will display all the images that are currently available on your system.

  4. In the Results section, select the image that you want to insert in the page.

  5. Save your changes and then close the document.

back to the top

Open an HTML Document in Word

  1. Click File, and then click
    Open.

  2. In the Open dialog box, locate the HTML document that you created earlier, and then select it.

  3. Click Open.

back to the top

References

For more information about HTML support in Word 2003, follow these steps:

  1. Start Word 2003.

  2. On the Help menu, click Microsoft Word Help.

  3. Type HTML in the
    Search box, and then click the arrow.

  4. Related topics and templates will appear.

    Click any item to display the information.

back to the top

Need more help?

You can use Microsoft Word to convert existing documents into HTML format. Use the “Save as Web Page” option to create documents for the web. Remember, layout differences may exist after you convert a document. For example, if you used tabs to create a table in Word, the tab space will not appear in the HTML document. To avoid having to correct an improperly aligned table, always use Word’s Insert Table options to create new tables. Also, each time you use the ENTER key in Word, extra white space will appear in the converted document (let the text wrap automatically whenever possible). 

Note: Read the instructions for using the "Save as Web page..." option before you start.

  1. Open Word. 
  2. When the application opens, from the “File” menu, choose “Open.” Then, from the list of available documents, double click the document you wish to convert. 
    Note: When the document opens, familiarize yourself with the layout. The converted document  will not look exactly like the original. 
  3. From the “File” menu, choose “Save as Web Page.” Click “Save.” 
    Note: When you convert a document to HTML format, you retain the original document as a separate file. The new HTML file has the same file name but a different file extension (.htm). 
  4. When the conversion is complete, the converted file appears in the window (filename.htm). View the HTML source code file by selecting the “View” menu, then “HTML Source.” 
  5. If you have graphics in your document, scroll through the HTML source code to find the reference to the image. Word names images consecutively (Image1.gif, Image2.gif, etc.) When you publish your page, be sure to include these image files.
  6. Return to edit mode by clicking the “X” in the HTML Source window. 
  7. You can modify the HTML file using the Microsoft Word formatting buttons and menu options and the Web toolbar options (insert hyperlink, insert image). When you are satisfied with the appearance of your page, be sure to save it. 
  8. Close your document by selecting the “File” menu, then choosing “Close.” Click the Close button (the “X” in the upper-right corner) to close Word. 
  9. Open your HTML file in a WWW browser to see how it will appear. You can adjust the layout of the page if necessary using Mozilla’s editing options. 
  10. Next,  you must move your files to your Web directory using SSH Secure Shell file transfer software.
  11. Once you have published your page, view it in Mozilla to see how it will appear to the world. 

  12. Open Mozilla Navigator. In the “Location:” box, type the address (URL) of your page.
    • If you published in your “public_html” directory, the URL will be http://udel.edu/~your_username/filename.htm.
    • If you published in an official University directory, the URL will be http://www.udel.edu/directory_path/filename.htm.
    • If you published your student organization page, the URL will be http://copland.udel.edu/stu-org/your_organization's_directory