Links in HTML
What is the link tag?
One of the very useful tags in html is the link tag. This tag is used when you want to include link in your website that directs the user to another website, or another part of your own website.
The link tag can be used in buttons, within a sentance, or even in an image.
Using the link tag
The link tag is very easy to use. To include a link in your website, simply use the following:
<a href= "*Website URL here*" > *Clickable text here* </a>
The href in the link tag represents the target link (the link you want the user to be taken to). As you can see, the href
goes in between the less than and greater than sign in the opening a tag.
Link tag options
There are a few different options when it comes to selecting where you want the link to open. For example, if you want the link
to open in the current tab, use the following code in the opening a tag, after the href selection:
Alternativley, you can choose to open the link in a new window or tab by using the following:
Link tag example!
Try out the link tag in the editor below!
*NOTE: Currently, target="_blank" is not supported in the editor below,
but it will still work in an outside HTML tester. We apologize for the inconvenience!