How do you create links in HTML?

You can create a link in HTML using the following code.

<a href="https://www.example.com">link text</a>

The example code above will open the website example.com in the same tab.