Please note Primer v16 has changed the naming of these color classes. Check the <ahref="https://github.com/primer/css/blob/c2a613c833555caa47588729d0b9a0b5a8383b15/MIGRATING.md#1600">migration guide</a> to make sure your app is up to date.
By default `<a>` elements already use the right link color and apply an underline on hover.
```html live
Some text with a default <ahref="#url">link</a>
```
If you need to make other elements behave like a link and perhaps use JS to trigger navigating to another page, use the `.Link` class.
```html live
Some text with a <spanclass="Link">span that behaves like a link</span>
```
If you like to override the default link styles you can do so with the following link utilities. **Bear in mind that link styles are easier for more people to see and interact with when the changes in styles do not rely on color alone.**
Use `.Link--primary` to turn the link color to blue only on hover.
```html live
<pclass="color-text-secondary">Some text with a <aclass="Link--primary"href="#url">Link--primary</a></p>
```
Use `.Link--secondary` for a more subtle link color that turns blue on hover.
```html live
Some text with a <aclass="Link--secondary"href="#url">Link--secondary</a>
```
Use `.Link--muted` also removes the underline on hover. Tip: You can also use the `.no-underline` utility to do the same for `.Link--primary`.
```html live
<p>Some text with a <aclass="Link--secondary no-underline"href="#url">Link--muted</a></p>
<p>Some text with a <aclass="Link--primary no-underline"href="#url">Link--primary no-underline</a></p>
```
Use `.Link--onHover` to make any text color used with links to turn blue on hover. This is useful when you want only part of a link to turn blue on hover.