Colored links
From Get docs
Bootstrap/docs/5/helpers/colored-links/index
Colored links
Colored links with hover states
You can use the .link-*
classes to colorize links. Unlike the .text-* classes, these classes have a :hover
and :focus
state.
<a href="#" class="link-primary">Primary link</a>
<a href="#" class="link-secondary">Secondary link</a>
<a href="#" class="link-success">Success link</a>
<a href="#" class="link-danger">Danger link</a>
<a href="#" class="link-warning">Warning link</a>
<a href="#" class="link-info">Info link</a>
<a href="#" class="link-light">Light link</a>
<a href="#" class="link-dark">Dark link</a>
Some of the link styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast.
© 2011–2021 Twitter, Inc.
© 2011–2021 The Bootstrap Authors
Code licensed under the MIT License.
Documentation licensed under the Creative Commons Attribution License v3.0.
https://getbootstrap.com/docs/5.1/helpers/colored-links/