Links or anchor tags in HTML
There in html basic, you must have knowledge of html links so as to use them anywhere according to demand.
The html basic anchor tag is:
<a href=”https://webdeveloperhire.com” target=_blank>HR Web Solution</a>
<a href=”https://webdeveloperhire.com” target=_self>HR Web Solution</a>
<a href=”https://webdeveloperhire.com”>HR Web Solution</a>
This link should appear on browser screen like this,
An anchor tag should be written like these three ways in html but it is the most powerful thing in the field of html web development. Here is the detailed description of used words,
- First a is used to tell the browser that it is a link inside.
- href is used to tell the browser that where the visitor is to send on which address after clicking in quotes.
- Target defines where the new webpage should be opened. In first, _blank is used, this tells the browser that the new link should be open in the new tab or window. In second _self is used, this tells the browser that the link should be open in the same tab or window. If you want to open that link in same tab then you can skip this target section in like third anchor tag.
- The text between > and </a> will be displayed on the browser screen and the visitor will click on this text to go to the given link inside this. Like:
Also you can put this type of anchor tag inside a paragraph or inside a like, you can put the tag inside paragraph on a specific word and visitor can go to that link by just clicking on it. For example we have added anchor tags on this paragraph on some words, which are: anchor, paragraph, visitors.
In case of any query or help just write in below comment section, our team of experts will guide you through the way.