The <a> tag creates a link. But unlike the tags we've seen so far, it doesn't work on its own - it needs extra information. Where should the link go? This is where attributes come in.
Attributes are extra information you add inside the opening tag. The pattern is always name="value":
<a href="https://learnlwc.com">Visit Learn LWC</a>Here href is the attribute name and the URL is the value. Without href, the <a> tag is just plain text - it won't link anywhere.
Attributes are a big concept that you'll use all the time, not just with links. We'll see them again with images, inputs, and especially in LWC where you pass data to components through attributes.
By default, clicking a link navigates away from the current page. To open it in a new tab, add the target attribute:
<a href="https://trailhead.salesforce.com" target="_blank">Open Trailhead</a>You can put multiple attributes on the same tag. Just separate them with spaces inside the opening tag.