How to insert a link into the text so that it opens in a new window

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 general ideas about the html language, in which there is for this purpose a special "command", called "tag a". In order for your page to open the required Internet page when clicking on some element, it is necessary to write the first part of the tag in <> write: a href = '' the address of the page the user should go to ''. 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 <> will not be visible when opened in the browser, therefore, for example, (<) a href = 'ww w.mmmmypage.zu' '(>) my page (<) / a (>), look just like the inscription "my page" (without the quotes).

as in the text insert linkHow to insert a link in the text so that itopened in a new window? To do this, you need to use the target attribute, which takes the value "_blank" through the equal sign and is added to the first part of the "a" tag. For example, if you do not have parentheses (<) a href = 'w w w.mmmmypage.zu' 'target =' '_ blank' '(>) my page (<) / a (>), the page will open in another window.

Often novice professionals are asked a problem,as in the text insert the link, 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 = "ww w.mmmmypage.zu" target = "_ blank" title = "my site" (>) my page (<) / a (>) "my site". 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).

insert link into textBut advanced users know how totext insert a link so that it does not pass the "weight" of the site assessed by the search engines to another resource that a visitor can go from your own page. To do this, again, the rel = "nofollow" attribute is placed in the first part of the tag. Example: (<) a href = "w w w.mmmmypage.zu" my page (<) / a (>). The parentheses of the code are removed again. There is also an interesting variation of the value rel = "sidebar", which offers a visitor to anchor a link that leads to a page in the bookmarks bar.

Almost every site you can find a pictureor a button that is a link. How in the text to insert a link in this case? We answer - using the combination (<) img src = "image address" (>), which is located between the first and second part of the tag (<) a (>). Example: (<) a href = "ww w.mmmmypage.ru" target = "_ blank" title = "my site" rel = "nofollow" (>) (<) img src = "10ghnyj.gif" (>) ( <) / a (>). From the example, when executed in practice, you also need to remove the parentheses, which are here to make the code "visible".

html insert linkUsing the html language, inserting a link is quite simple. In doing so, you must follow several rules:

- periodically check external links anddelete the invalid. This is necessary because the owners of third-party resources can remove information from their sites. A visitor to your site will feel frustrated when going through an empty link;

- 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 harmoniously fits into the text;

- think up original, informative, but short texts for references;

- 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.



Related news

  • Smell from the vagina: causes and effects
  • Tow trucks in Ivano-Frankivsk region: a selection of sites
  • Incredible body anomalies in the new documentary series of the same name from Discovery
  • Wormwood
  • The one who saw snow in a dream is that happy person
  • How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window How to insert a link into the text so that it opens in a new window