Page 121 - TP_Plus_v2.2_Class_8
P. 121

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

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

                 </BODY>
                 </HTML>
                 When we click on any link, we will reach to linked section as shown:





























                                                                Output
                 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>
                                                                                   A link in HTML is like a bridge
                 <HEAD>
                                                                                   that connects the text to the
                 <STYLE>                                                          destination and invites users to
                                                                                            cross over.
                 a:link, a:visited {

                 BACKGROUND-COLOR: PINK;
                 COLOR: RED;



                                                                                Images, Links and Frames in HTML5  119
   116   117   118   119   120   121   122   123   124   125   126