Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 49 - 2615_KEC
P. 49

    An 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  47

| 44 45 46 47 48 49 50 51 52 53 54 |