Page 51 - KEC Khaitan C7 Flipbook
P. 51

Write HTML code to create a hyperlink on an image.

                 <!DOCTYPE HTML>
                 <HTML>
                 <HEAD>
                 <TITLE> Creating Hyperlink to an Image </TITLE>

                 </HEAD>
                 <BODY>
                 <H1 STYLE = "text-align:center">Valley of Flowers </H1>
                 <IMG  Style = "Border:4px  Solid  Black;  Height:200px;  Width:250px;"
                 src = "D:\Valley_of_Flower.jpg">
                 <br>

                 <P> Click on the image given below to visit the official website</P>
                 <A HREF = "https://uttarakhandtourism.gov.in/destination/valley-of
                 flowers">
                 <IMG Style = "Height:100px; Width:100px;" SRC = "E:/YellowFlower.jpg">
                 </A>

                 </BODY>
                 </HTML>























                 The link to the image is displayed on the web browser.





                                                                                   Images, Links and Forms in HTML5  49
   46   47   48   49   50   51   52   53   54   55   56