welcome to Learning World,Worlds No.1 dastination for Learning. Stay With Us for New Updates and Follow us On FB and Google+.

Welcome to Free learning World Learning World: How to give color to links in post

Search Here

Friday, November 11, 2016

How to give color to links in post

How to give color to links in post

When you move the mouse over a link, two things will normally happen:

The mouse arrow will turn into a little hand
The color of the link element will change
By default, a link will appear like this (in all browsers):

An unvisited link is underlined and blue
A visited link is underlined and purple
An active link is underlined and red
You can change the default colors, by using styles:
Example 
<!DOCTYPE html>
<html>
<head>
<style>
a:link {
    color: green;
    background-color: transparent;
    text-decoration: none;
}
a:visited {
    color: pink;
    background-color: transparent;
    text-decoration: none;
}
a:hover {
    color: red;
    background-color: transparent;
    text-decoration: underline;
}
a:active {
    color: yellow;
    background-color: transparent;
    text-decoration: underline;
}
</style>
</head>
<body>

<p>You can change the default colors of links in differ colour</p>

<a href="html_images23.html" target="_blank">HTML Images</a> 

</body>

Coding result
You can change the default colors of links in differ colour

HTML Images23

No comments:

Post a Comment