# CSS Links

# **CSS Links**

The four links states are:

* `a:link` - a normal, unvisited link
    
* `a:visited` - a link the user has visited
    
* `a:hover` - a link when the user mouses over it
    
* `a:active` - a link the moment it is clicked
    

* ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683277885039/54e315a6-dbd5-42c9-81e7-e223f20a741a.jpeg align="center")
    
* # Text Decoration👇
    

The `text-decoration` property is mostly used to remove underlines from links:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683278367416/5ee8a5d7-4282-4078-a391-d0e68ff90ab5.jpeg align="center")

# Background Color👇

The `background-color` property can be used to specify a background color for links:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683278229567/83e6743c-787d-41f6-a160-7bb34f4554d7.jpeg align="center")

# Link Buttons👇

This example demonstrates a more advanced example where we combine several CSS properties to display links as boxes/buttons:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683278479412/56c52848-c6ad-47f2-a86c-b0cdb379bae1.jpeg align="center")

---

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666336375150/5HqI8zNVh.png align="left")

\&gt; Download our HTML & CSS Visual Treat! ebook Here: [Click here](https://codemarch.gumroad.com/l/hxazr)
