Page 70 - TP_Prime_V2.2_Class8
P. 70

<IMG SRC="tulip3.jpg" HEIGHT="200" WIDTH="200">

                  </SPAN>
                  <BR> <BR> <BR>
                  <A HREF = "Flower.html"> Back </A>

                  </FONT>
                  </BODY>
           Prime (Ver. 2.2)-VIII  </HTML>

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













          68







                                                                 Output

                  You can also use various CSS properties to change the color of hyperlinks in different
                  states. There are mainly four states of hyperlinks, which are link, visited link, hover, and
                  active. 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 for a link that the user has visited.

                  •  a:hover: It is used to set the style for a link when the mouse pointer moves over it.
                  •  a:active: It is used to set the style for 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;
   65   66   67   68   69   70   71   72   73   74   75