Continuous Test Orchestration And Execution Platform Online

Perform automated and live-interactive testing on 3000+ real desktop and mobile devices online.

How to target a link in CSS?

The :link CSS selector targets the unvisited link. To style links that have already been visited, use “:visited”; to style links that have been clicked on, use “:active”; and to style a link while the mouse is over it, use “:hover”.

For example, because most browsers apply a special color to visited links, the links in this example will probably have special font colors only before you visit them. But you'll need to check your browser history to see them again because the background-color value will likely remain even after you've visited the links.

CSS Syntax:


a:link {
  background-color: gold;
  color: green;
}
LambdaTest

Test your websites, web-apps, or mobile apps seamlessly with LambdaTest.

Start Free Testing
LambdaTest

Earn resume-worthy Selenium certifications that help you land a top job.

Learn More
LambdaTest

Test your web or mobile apps

Test orchestration and execution cloud of 3000+ browsers and OS

Support

24/7 support

Security

Enterprise grade security

Cloud

Fastest test execution cloud