Put a Word Document on Your Website


There are many options for website owners who want to share some certain information that is lengthy with their customers or web users. One of the options is creating a link pointing to your file location on your web host so that the customers can download the file. This article will guide you step by step how to create a link pointing to your Word document location on your website. Let’s get started!

Steps

  1. Open your Web page source code. This is the page where you want to put your Word document in. You can use any text editor you like. In this case, I use Notepad ++ as a playground for this article.
  2. Insert a tag called <p></p> in the body section of your html code. In this example, the link will be inserted within a paragraph. However, you can choose wherever to put your Microsoft Word document in your Web page, it doesn’t have to be inside the <p></p> tag which is for a paragraph element.
  3. Copy the following code:

  4. Paste the code in "Step 3" onto your text editor. The “YourDocument.doc” is where you can replace it with your own name. But, don’t forget to put the “.doc” extension after the name if you use or save your document to the Microsoft Office Word 97-2003 format.
  5. Click “File” and select “Save.”
  6. Preview the result. Click “File” then go to “Preview in Browser.” Click “Google Chrome” or whatever your default Internet browser is.
  7. The “Click here to open a Word document” is displayed. Click the link to make sure the link works.
  8. An opening document dialog box is shown. Click “OK.” Your Word document is opened.
  9. Congratulations! Now you know how to put a Word document on your website.

Tips

  • Be sure to put your saved Word document at the same folder or location as your html document.
  • Always save your Word document with the “.docx” extension if you use the Microsoft Office Word 2007 and up formats. For more Microsoft Office Word extension information, you can check out the Wikipedia reference below.
  • Another alternative way to the Step 6 (Preview the Result), you can go to your Web page folder and find the html file where you put a link to the Word document. Click on your browser icon. Your Web page should be displayed the same as clicking the “Preview in Browser” button in Dreamweaver.
  • In case you are going to put a .txt file, you can put it directly on the website, inside the <p></p> tags. For example, <p>Your Text Here </p>
  • Any text files (.odt, .doc, .docx, etc.) can be put on the link, depending what can audience's text editor program open.

Things You’ll Need

  • A computer
  • Any text editor program
  • An Internet browser

Related Articles

Sources and Citations

https://en.wikipedia.org/wiki/Microsoft_Office_2007_filename_extensions http://www.w3schools.com/Html/html_links.asp

You may like