How to insert the file on a HTML page

How to insert the file on a HTML page

Rather often owners of the websites face need to lay out any given files – programs, photos, media files, etc. If on an Internet resource there is no special option of adding of files, it is necessary to state in the code of the page on them direct references. Instruction 1. Via the control panel of your account on a hosting download files, references to which you want to place. For convenience you can create the separate folder – for example, files or download. It is possible to upload files and through FTP, the last way is convenient if files have the big size. 2. Now issue necessary links, for this purpose there is special HTML code: file description For example, at you is the website http://мой_сайт.ru and you should insert the link to the calculator.exe program. The file is placed to the address: http://мой_сайт.ru/downloads/calculator.exe. Then the link which should be placed in the code of the website will have an appearance: the Simple calculator the Phrase "The simple calculator" describes the file, it also will be line of the link. 3. Consider that absolute and relative paths can have references. For example, the file reference calculator.exe can be issued so: the Simple calculator If the file of the program to place in one folder with the homepage, then a line of the link can look even simpler: Simple calculator 4. If the file is in one folder with the page on which the reference to it is given, then the address will take a form: the Simple calculator In comparison with the previous option, disappeared a slash. In the same way you can insert links to any other files, changing a file name and its description in a line of the link. 5. If you post photos, such option can be convenient for visitors of the website: you place sketches of photos of the small size on the page, and the user, if desired, can open the original of the photo, having clicked with a mouse the sketch. When using relative paths the link can look as follows: 6. Attentively check the specified paths to files, in them there should not be errors. Having laid out the page of the website with links, surely check them for working capacity.

Author: «MirrorInfo» Dream Team


Print