HTML link color
HTML Tutorial » HTML link color?
Study in this chapter:
1. html link color without css
2. html link color inline
3. how to change link color in html - css
4. html default link color
5. hyperlink blue color code
6. link color hex
An HTML link on a web page is displayed in a certain color depending on whether it has been visited, is not visited, or is active as set.
Syntax:
Browser Support HTML link colo
Element | ![]() Chrome |
![]() IE |
![]() Firefox |
![]() Opera |
![]() Safari |
HTML link colo | Yes | Yes | Yes | Yes | Yes |
HTML link color without CSS
You can only set the colorof hyperlink.
Where "aaaa" being the color used for links, "bbbb" the color when mouse hovers the link and "cccc" is the color for already visited links. Color can be given in hex notation like with stylesheets CSS (#E1E1E1 or #FFF)
You cannot set links are underlined or not, border or not. This depends on each individual browser unless these devices have some special, secret non-standard HTML.
Related subjects:
How to Link CSS to HTML?
HTML link tag with example
How to create HTML link without underline
HTML link color inline
To change the color of the link inline in HTML we use CSS color property. For this you can apply the color code such as (hexadecimal color codes) or directly the color name as the color value.
Inline style method:
Have to add the style attribute directly to the anchor tag and then specify the color property through the style attribute, then assign a color value you need.
<!DOCTYPE html>
<html>
<body>
<a style="color: red" href="https://www.agernic.com/">AgerNic.com</a>
</body>
</html>
Tags: html link color without css, html link color inline, how to change link color in html - css, html default link color, hyperlink blue color code, link color hex, change color after click, not change color, blue, none, hover, default color of link in browser
You can style link - hiperlink differently with CSS properties as:
Inline method - Add style attribute directly to the link - hyperlink code and specify the color property through the style attribute, then give a color value to it how you need.
Internal method - use <style> tag in the
<head> section of your HTML document and in the <style> tag, we set the color of your link.
External method - This is a more efficient method, especially when you need to style a large website. You can change your whole site at once by editing one .css file.
<!DOCTYPE html>
<html>
<body>
<a style="color: red" href="https://www.agernic.com/">AgerNic.com</a>
</body>
</html>
Change color of the link, using CSS - Internal method
<!DOCTYPE html>
<html>
<head>
<style>
a:link {
color: greenyellow;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: deepskyblue;
background-color: transparent;
text-decoration: none;
}
a:active {
color: yellow;
background-color: transparent;
}
</style>
</head>
<body>
<a href="https://www.agernic.com" >Online HTML Tutorial</a>
</body>
</html>
External method
You can change your whole site at once by editing one style.css file.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<a href="https://www.agernic.com" >Online HTML Tutorial</a>
</body>
</html>
HTML default link color
By default, a link will appear like this (in all browsers):
- Unvisited link - underlined and blue
- Visited link - underlined and purple
- Active link - underlined and red
You can change the link state colors, by using CSS:
Hyperlink blue color code
According to a study in link readability, the regular Web user sees the blue-and-underlined text as links. But why? Initially, someone must have thought of keeping the color of hyperlinks as blue.
Link color hex
standard link: #0000EE (blue) visited link: #551A8B - HEX code
Summary of description
- html link color without css
- html link color inline
- how to change link color in html - css
- html default link color
- hyperlink blue color code
- link color hex
html link color without css, html link color inline, how to change link color in html - css, html default link color, hyperlink blue color code, link color hex, change color after click, not change color, blue, none, hover, default color of link in browser
HTML link color - html tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.