Page 64 - Plus V4 with Adobe class 8
P. 64

When we click on any link, we will reach to linked section as shown:
























        You can also use the different CSS properties to change the colour of hyperlinks in different states.
        There are mainly four states of hyperlinks which are link, visited link, hover and active. By using the
        following CSS properties, you can change the look and style of hyperlinks in different states:

            a:link: It is used to set the style for an unvisited link.

            a:visited: It is used to set the style on a link which the user has visited.

            a:hover: It is used to set the style on a link when mouse pointer moves over it.

            a:active: It is used to set the style on a link when it is clicked.

        Let us create a web page to use all these properties.

        <!DOCTYPE html>

        <HTML>
        <HEAD>
        <STYLE>

        a:link, a:visited {
          background-color: pink;
          color: red;

          padding: 20px 22px;
          text-align: center;

          text-decoration: underline;
          display: inline-block;
        }
        a:hover, a:active {

          background-color: green;
          color:orange;

          font-size:20px;
          font-weight:bold;


            62  Plus (Ver. 4.0)-VIII
   59   60   61   62   63   64   65   66   67   68   69