How to lay out the file on the website

How to lay out the file on the website

On the Internet, except pages of the websites, also other documents are stored and extend. Let's consider in more detail how to lay out the file in network and to post the link to it on the website.

Instruction

1. It is possible to load the file on the server of the website under the FTP-protocol (File Transfer Protocol - "file transfer protocol"), having used the special program. Such programs are called FTP-clients, and them there is a set, both paid, and free. For example: FlashFXP, Cute FTP, WS FTP, FileZilla, Smart FTP, etc. Having installed the program, you will need to enter data of the hosting - the address of its and loginwith the password ftp-server. In different programs it is organized in different ways, but the principle is identical. Downloading complexity does not represent - in the left panel on a tree of folders it is necessary to pass into the folder of storage of the file on your computer, and in the right panel - in the necessary folder of the website, and then it is simple to drag the necessary file from the left panel in right. Program installation of any complexity on the computer, its mastering and setup as you understand, will involve certain costs of time. There is an alternative - it is possible to use the file control panel manager of your hosting which allows to download necessary files directly via the browser. You only need to find where exactly in your control panel there is a file manager - unfortunately the uniform standard does not exist and administration systems at the hosting companies differ. If the file is too big, and the place on your server is limited, then it is possible to use public faylokhranilishcha, for example - multiupload.com. Having loaded the file there, you receive links to it which you can post on the website as well as links to files of the server.

2. After loading of the file you will need to place the link to it on the necessary page of the website. The file reference in the code of the document differs in nothing from the link to the normal page. It, as well as any other element of the web page, is visualized by the browser on the basis of information in the source code sent it by the server. The source code is a set of the instructions written in the HTML language (HyperText Markup Language - "hypertext markup language") which describe arrangement, type and appearance of each of page elements. It is accepted to call these instructions of the HTML language "tags". The file reference will be created by the browser when he reads the corresponding tag from the code of the page: <a href= ""file.rar""> the File reference </a> In this example <a href= ""file.rar""> is an opening tag of the link, and </a> - closing. In the opening tag it is possible to place "attributes" - additional information on appearance and features of "behaviour" of this tag. The href attribute specifies the file address, a request for which should be sent if the visitor clicks the link, in this sample. Such address is called "relative" - he specifies path to the file, measuring it from the location of the current page. If the file lies on other website, or on same, but in the folder is one level higher current, then it is necessary to specify the "absolute" address. The link with the absolute address will look, for example, so: <a href= ""http://mysite.ru/file.rar""> the File reference </a> That is to place the file reference in any page of the website, it is necessary to open for you HTML code of this page and in the right place to add the corresponding tag. If the file with the code of the necessary page is at your disposal, then it is possible to open and edit it in any text editor. If for management of the website you use any of management systems, then it is possible to edit pages directly in the browser. For this purpose it is necessary to find in the control panel of a system the editor of pages and to open the page necessary to you in this online editor.

3. As well as in the link to the page, it is possible to specify in the tag of the file reference also other attributes allowing to change appearance and processing rules its browser. The target attribute - one of the most important at this tag. It contains the instruction on a window into which it is necessary to load the link. Four options are for this purpose provided in the HTML language: _self - loading should be carried out in the same window or a frame. "Frame" is one of parts of the page if it is divided into several such parts; _parent - if the page with the link itself also was loaded with use of scripts from other window or a frame, then it has a "parent" window. The _parent value orders to load the file which the link, in this most parent window indicates; _top - the file should be loaded into the same window, at the same time all frames existing in it (if is) should be destroyed; _blank - demands for loading of the file according to this link of opening of a separate window; Sample: <a href= ""http://mysite.ru/file.rar"" of target= "" _blank""> Loading of the file in a new window </a>

Author: «MirrorInfo» Dream Team


Print