Computers, Programming
How to insert a link into the text so that it opens in a new window
In order to insert a link into the text, it is necessary to have a general understanding of the html language, in which there is for this purpose a special "command", called a "tag a". In order for your page to open the required Internet page when clicking on some element, it is necessary in <> write the first part of the tag: a href = http: //fb.ru/article/71482/%E2%80%99%E2%80%99 % D0% B0% D0% B4% D1% 80% D0% B5% D1% 81 pages to which the user must go. Next, specify the part of the record that will be visible directly on the source page, and place the second part of the tag in <> with the closing slash (/ a). Elements in <> when opened in the browser will not be visible, therefore, for example, (<) a href = http: // site / article / 71482 /% E2% 80% 99% E2% 80% 99w w.mmmmypage.zu '' (>) My page (<) / a (>), decorated without brackets, will look just like the inscription "my page" (without the quotes).
Often novice professionals are given the problem of how to insert a link into the text so that when you hover over it, the explanatory inscription "crawls out". This situation is also resolved within the first part of the tag "a". For registration, the attribute title = "link information" is used. In our case, when executing (<) a href = http: // site / article / 71482 /% C2% ABw w w.mmmmypage.zu »target =" _ blank "title =" my site "(>) my page (< ) / A (>) when you move the mouse to the link, the information "my site" appears. And if you click on the link, a new window will open, because we share the attributes target and title (in the code, the parentheses need to be removed).
Almost on each site you can find a picture or button that is a link. How in the text to insert a link in this case? We answer - using the combination (<) img src = http: //fb.ru/article/71482/%E2%80%9D%D0%B0%D0%B4%D1%80%D0%B5%D1%81 images "(>), Which is located between the first and second part of the tag (<) a (>). Example: (<) a href = http: //fb.ru/article/71482/%C2%ABw w w.mmmmypage.ru »target =" _ blank "title =" my site "rel =" nofollow "(>) (<) Img src = http: // site /article/71482/%E2%80%9D10ghnyj.gif%E2%80%9D%28%3E%29%28%3C%29/a%28%3E%29 . From the example, when executed in practice, you also need to remove the parentheses that are here to make the code "visible".
- periodically check external links and delete invalid ones. This is necessary because the owners of third-party resources can remove information from their sites. A visitor to your site when going through an empty link will feel a sense of disappointment;
- do not make many links from one page. For a medium-sized page, their number should not exceed one hundred;
- make sure that the link fits harmoniously into the text;
- invent for the reference original, informative, but short texts;
- warn visitors that the page can be downloaded for a long time, if such a situation occurs. This will preserve their nervous system and will not let you leave your resource.
Similar articles
Trending Now