How to place the file reference

How to place the file reference

In a hypertext markup language (HTML) on which the source code of web pages is written the file reference differs in nothing from the link to other page. Therefore to place the file reference, it is necessary to do the same operations, as for the normal link.

Instruction

1. At first prepare the code of the link for an insert in the document. In the simplest option the file link can be written so: <a href= ""file.rar""> the Text of the file reference </a> In this option is supposed that the file.rar file lies in the same folder of the server where also the page. If it not so, then is better to specify the full address (URL) of the file. For example: with <a href= ""http://someSite.ru/someFolfer/file.rar""> the Text of the file reference </a> Of course, to you it is necessary to replace the address with your own. Besides, it is desirable to open the file reference in a separate window - when loading some types of files if they are rather great, the browser will be occupied only with it and the page with the link will be paralyzed. Instruct the browser it is possible to open a link in a separate window by means of the target tag, having assigned it value "" _blank"": <href= ""http://someSite.ru/someFolfer/file.rar"" of target= "" _blank""> Text of the file reference </a>

2. Now it is possible to start directly the procedure of an insert of the prepared HTML code of the file reference in the source code of the document. The simplest option is to use the editor of pages of your management system of the website. If your website has no management system - it is possible to download the file of the page to itself in the computer and to edit by means of the normal text editor. Select one of these two options and open the necessary page. If you use the editor of pages of a management system, then after loading of the page in him switch in a HTML-code editing mode.

3. Find the place where you want to see the file reference in the code of the page and insert the prepared code of the link. It was necessary only to save the page with the made changes. If you downloaded the page from the server and edited in the computer, then load it back. It is the simplest move files between the local computer and the Web server using the file manager which is in the control panel of any hosting and in management systems of the websites. But it is possible to use also resident programs - the FTP-clients who are carrying out movements of files not via the browser, and under the FTP protocol (File Transfer Protocol - "file transfer protocol"). For example, WS FTP, FlashFXP, Cute FTP, etc.

Author: «MirrorInfo» Dream Team


Print