Link to another website
To link to another website, it is just putting the website URL into the href=”" attribute. For example:
This is a link to Google
You might be thinking that this is so simple, why would I make a page for it? Well because if you notice, when you click on the link above, it opens on the same page. Then you will lose your visitors. Therefore, we would want to open it on a new tab. To do that, give a target=”_blank” on the <a> tag. For example:
This opens in a new page
<a href="http://www.google.com">This is a link to Google</a>
This is a link to Google
You might be thinking that this is so simple, why would I make a page for it? Well because if you notice, when you click on the link above, it opens on the same page. Then you will lose your visitors. Therefore, we would want to open it on a new tab. To do that, give a target=”_blank” on the <a> tag. For example:
<a href="http://www.google.com" target="_blank">This opens in a new page</a>
This opens in a new page
Leave a comment