The anchor tag is represented with <a>. This tag mainly used for creating links. It has an attribute called href that specifies the link value. The anchor is an inline element that has and end tag too. See the following example:
<a href="https://facebook.com">Facebook</a>
The above code will open the link in the save tab but if we want to open it in a separate tab then we need to add target attribute like below:
<a href="https://facebook.com" target="_blank">Facebook</a>
<a href="https://facebook.com">Facebook</a>
The above code will open the link in the save tab but if we want to open it in a separate tab then we need to add target attribute like below:
<a href="https://facebook.com" target="_blank">Facebook</a>
No comments:
Post a Comment