How to Link Word Documents With HTML Code

Save

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">http://www.example.com/documents/script.doc">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.

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!