HTML Anchor Tag: href, target, rel and download
Use the HTML anchor element to link to a destination. The href attribute can point to another page, a section on the current page, a telephone number or an email address. Give each link text that explains what will happen when someone follows it.

Set the destination with href
For a link on your own site, <a href="/contact/">Contact us</a> uses a root-relative path. For a section jump, href="#delivery" needs a matching id="delivery" on the target. A click-to-call link can use href="tel:+441925205035". Test it on a phone before relying on it.
Use target, rel and download for specific needs
Links use the current tab by default. If a new tab is appropriate, use target="_blank", and consider telling the reader. Modern browsers treat this as having noopener behaviour, and you can specify rel="noopener" explicitly. The download attribute suggests saving a resource and generally works for same-origin URLs, plus blob and data URLs. Browser settings and headers can affect the outcome.
Make the link work for people and crawlers
Use a real <a> with an href for navigation and a button for actions such as opening a dialog. Check that links are reachable by keyboard and that focus is visible. Replace vague link text such as ‘click here’ with the name of the destination, and avoid placing unrelated controls inside a link.