Page 83 - TP_Play_V2.1_class8
P. 83

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

                 </FONT>
                 </BODY>
                 </HTML>
                 When we click on any link, we will reach to linked section, here, we have clicked on About Lotus
                 as shown:























                                                                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 {
                                                                             HTML forms gather data from users,
                   BACKGROUND-COLOR: PINK;
                                                                              akin to how trees collect nutrients
                   COLOR: RED;                                                          from the soil.

                   PADDING: 20px 22px;
                   TEXT-ALIGN: CENTER;
                   TEXT-DECORATION: UNDERLINE;

                   DISPLAY: INLINE-BLOCK;
                 }


                                                                          Images, Links and Frame in HTML5        81
   78   79   80   81   82   83   84   85   86   87   88