top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How are active links different from normal links?

0 votes
662 views
How are active links different from normal links?
posted Jun 14, 2017 by Kumar Neeraj

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The default color for normal and active links is blue. Some browsers recognize an active link when the mouse cursor is placed over that link, others recognize active links when the link has the focus. Those that don’t have a mouse cursor over that link is considered a normal link.
Here is the piece of code :-

   <html>
    <head>
        <style>
/* unvisited link */
a:link {
    color: red;
}

/* visited link */
a:visited {
    color: green;
}

/* mouse over link */
a:hover {
    color: hotpink;
}

/* selected link */
a:active {
    color: blue;
}
        </style>
    </head>
    <body>

        <p><b><a href="any_page_name.html" target="_blank">This is a link</a></b></p>
        <p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p>
        <p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p>

    </body>
</html>
answer Jun 19, 2017 by Mantosh Dubey
Similar Questions
+3 votes

I want to put background music on my web-page.

+2 votes

Let me know the freeware where we can design and webpage and can preview the corresponding html code?

+2 votes

Let us consider I have two IP address (one assigned by VPN server and other one assign by ISP like Airtel). when user sends some data from Application then which of the layer of TCP/IP model decides that this data will be send to other end with VPN client ip or normal IP assigned by ISP ?

...