How to create a link with HTML

To add a link with HTML you need to use the following code…

<a href="link destination" target="image target" />

In the href attribute insert the link. The target defines if the link should open in the same window or a new browser window. Use _blank to open in a new window or _selv to stay in the same browser window. You can exclude target from the code if you want to keep the user in the same browser window. Below you will find an example code.

<a href="https://beginnertuts.com" target="_self" />

This will link to the front page of beginnertuts.com and keep the user in the same browser window.

  Written by: Michael from Beginnrtuts.com     25-08-2022     Written in: HTML tutorials

Leave a Reply

Your email address will not be published.