- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set the link color with CSS
Use the :link class to set the link color. Possible values could be any color name in any valid format.
Example
You can try to run the following code to set link color −
<html> <head> <style> a:link { color:#FF0000 } </style> </head> <body> <a href = "">Demo Link</a> </body> </html>
- Related Articles
- Set the Color of links with CSS
- Set the color of the border with CSS
- Set the color of the outline with CSS
- Set the Color of Visited Links with CSS
- Set the opacity for the background color with CSS
- Set the background color of an element with CSS
- How to Change Link Underline Color using text-decoration-color CSS
- Set the color of the rule between columns with CSS
- How to set the color of a text with CSS
- Set style to current link in a Navigation Bar with CSS
- Style the active link with CSS
- Set the color of the four borders using CSS
- Set the color of the right border using CSS
- Set the color of the text decoration in CSS
- Change Cursor Color with CSS caret-color

Advertisements