How to add the reference to the image

How to add the reference to the image

It is very convenient when an area of coverage of the active link is not the text, but the image. HTML markup language quite allows to carry out such operation. Everything that for this purpose it is necessary - to combine tags in a special way. Instruction 1. If all files on the server are stored in one folder, then register the following HTML-code of the page: ‹href= page. html› Clicking this link will bring you on other page within the website‹ / a› 2. Check how to insert into the HTML-code of the link to the local pages located on third-party sites: ‹a href=http://сервер.домен/папка/страница.html›Нажатие on this link will bring you the page located on absolutely other website‹ / a› 3. Now check way of an insert in the page of the images which are stored on the same server as the website provided that all files on this server are stored in a shared folder: ‹img src= of an imyafayl.jpg› 4. The same way insert into the page and images which are stored on third-party servers: ‹img src=http://сервер.домен/папка/имяфайла.jpg› But at the same time you remember that some servers do not allow to insert images into the pages located beyond their limits, showing instead of them precautionary welcome screens or showing nothing. Do not copy in such cases the picture on the local server - it will be copyright infringement. Give the reference to this picture better. 5. That when clicking the picture there was a click-through, combine these tags as follows: ‹href=http://сервер.домен/папка/страница.html›‹img src= picture.jpg›‹ / a› If desired, replace in this design the global link to the page with local, or, on the contrary, the local link to the image to global. 6. At last, if you wish that click-through happened when clicking both the picture, and the text located under it, use more difficult design of the following view: ‹the picture.jpg› you will pass a href=http://сервер.домен/папка/страница.html›‹img src= with "p" to other page irrespective of whether you will click this text, or the picture located over it. The result will be absolutely identical.‹ / a›

Author: «MirrorInfo» Dream Team


Print