---
title: "CSS3 - Links"  
description: "In this blog I am trying to explaining the links using CSS3.  There are four different selectors with regard to links.You can specify whatever style y"  
author: "Vijay Shukla"  
published: 2012-12-27  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/415/css3-links  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# CSS3 - Links

In this blog I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to explaining the links using CSS3.\

There are four different [selectors](https://www.mindstick.com/interview/22831/what-is-the-use-of-selectors-in-objective-c) with regard to links.

You can specify whatever [style](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment) you'd like to each of these selectors, just like you'd do with normal text.

##### A:link

[Identify](https://www.mindstick.com/forum/159425/java-app-crash-arrayindexoutofboundsexception-identify-invalid-index) the style for ordinary unvisited links.

##### A:visited

Identify the style for visited links.

##### A:active

Identify the style for [active](https://answers.mindstick.com/qa/97113/why-does-an-active-ftp-not-work-with-network-firewalls) links.

A link becomes active once you click on it.

##### A:hover

Identify the style for hovered links.

A link is hovered when the mouse moves over it.

##### Note:

It isn't supported by Netscape browsers antecedent to [version](https://www.mindstick.com/articles/12845/things-to-remember-while-migrating-odoo-to-a-better-version) 6.

##### Style:

```
<style type="text/css">a:link {color: red;}a:visited {color:green;}a:hover {color: blue;}a:active {color: yellow;}</style>
```

##### HTML Code:

```
<a href="http://www.mindstick.com/BlogList.aspx">Link</a><a href="http://www.mindstick.com/DevelopersSection.aspx">Link</a>
```

##### Output:

In this blog when our HTML code load first time in the [browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser) link [color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp) will be red but when we go to on the any link its color will be changed in blue color and when that link will active its color will yellow. After visited on that particular link its color will be [green](https://www.mindstick.com/articles/95829/think-green-sustainable-design-considerations-for-commercial-buildings).

---

Original Source: https://www.mindstick.com/blog/415/css3-links

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
