Static
CSS
- a {
- color: #246be2;
- text-decoration: underline;
- }
The HTML markup for this demo remains the same throughout. It is simply: <a href="">Test link</a>
The outputs have been styled to show you how they would look if those CSS rules had been applied and the interaction had happened. For a true working example, see the test link at the end of the article.
- a {
- color: #246be2;
- text-decoration: underline;
- }
- a:hover {
- color: #000;
- }
- a:focus {
- background-color: #246be2;
- color: #fff;
- text-decoration: none;
- }
- a:active {
- color: #f00;
- }