How to Link Word Documents With HTML Code


The HTML pages that form the structure of a website connect to each other via links -- a stretch of text that when clicked sends the clicker to some other page. But links don't have to be to HTML files -- they can be to any file that exists online. By writing a link to a Microsoft Word document, you'll tell readers' browsers either to download the file or to open it in some kind of browser extension.

  • Find the Web address of the Word document. If it's on your computer, you'll have to upload it to your server space online, using whatever process you're using to upload the HTML code itself. Note the document's URL.

  • Enter a line in your page's HTML code that looks like this:

    <a href="Download">">Download DOC</a>

    Replace the text in quotes with the address of the DOC file, and "Download DOC" with whatever you want the link to say.

  • Test the HTML file by opening it in a browser and clicking the document link. If you have a Microsoft Word plug-in in your browser, it will open the DOC in that; if not, you'll simply be presented with a dialog box asking where to save the DOC on your hard drive.

Related Searches

Promoted By Zergnet


You May Also Like

Related Searches

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