How to create a file that can be downloaded from your web page

Table of contents:

How to create a file that can be downloaded from your web page
How to create a file that can be downloaded from your web page
Anonim

It may seem like a daunting process to create a downloadable file on your site, but it is actually very easy with very simple HTML codes. Read this article to the end to understand how to do this.

Steps

Method 1 of 1: Create a link

Make a File Downloadable from Your Website Step 1
Make a File Downloadable from Your Website Step 1

Step 1. Upload the file to your server

This can be done via FTP or in some other way. Check with your hosting company on how best to do this. Place the downloadable file in the same folder as the HTML page file from where the download will be made. This is done to make it easier to link to the downloadable file.

Make a File Downloadable from Your Website Step 2
Make a File Downloadable from Your Website Step 2

Step 2. Open the page that will contain the link to the file in a simple text editor

For example, in the "Notepad" program.

Make a File Downloadable from Your Website Step 3
Make a File Downloadable from Your Website Step 3

Step 3. Select the location where the link to the file will be located

You will have 2 options:

  • The word users will click to download the file go to step 4
  • Or an image containing a link to the file go to step 6
Make a File Downloadable from Your Website Step 4
Make a File Downloadable from Your Website Step 4

Step 4. Paste the following code where the link to the file will be:'''''word'''''

Make a File Downloadable from Your Website Step 5
Make a File Downloadable from Your Website Step 5

Step 5. Replace filename.xxx with the name of the file to be downloaded, and the word with the word that will contain the link

go to step 8 Step 6. Paste the following code where you will link to the file.

<img src = " picture.xxx"alt =" picture_name" />

Make a File Downloadable from Your Website Step 6
Make a File Downloadable from Your Website Step 6
Make a File Downloadable from Your Website Step 7
Make a File Downloadable from Your Website Step 7

7 If you want not to have this annoying border around the image, then type the following <img src = " picture.xxx"alt =" picture ">

Make a File Downloadable from Your Website Step 8
Make a File Downloadable from Your Website Step 8

Step 8. Replace filename.xxx with the name of the file to be loaded, picture.xxx - to the name of the image (located in the same folder with the file of the HTML page from which the download will be made), which contains a link to the downloaded file, and image_name is an expression that will pop up if users hold the cursor over the image.

Make a File Downloadable from Your Website Step 9
Make a File Downloadable from Your Website Step 9

Step 9. Done

Save the HTML file, upload it to the server and everything should work!

Advice

  • HTML is not as complicated as you think it is. Each link points to a specific file type, causing your browser to launch the program associated with that file type. For example, if the link leads to an HTML page, then your default Internet browser will open, if the link leads to a PDF file, then a PDF reader will launch (such as Adobe Acrobat Reader or CoolPDF Reader).
  • Try using the MediaFire service. Place the file on it, copy its link, then paste it between the tags of the file link in the HTML code.

Warnings

  • If the uploaded file is copyrighted, make sure you have permission for it!
  • Do not be lazy to check the uploaded file for correctness. Otherwise, it may not launch for users, which will confuse them.

Popular by topic