Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 93 - 2611_SmartGPT Pro V(5.0) C-7
P. 93

    Write HTML code to create a text hyperlink on a web page.

                     <!DOCTYPE HTML>

                     <HTML>
                     <HEAD>

                     <TITLE> Creating Hyperlink </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>

                     <A HREF = "https://uttarakhandtourism.gov.in/destination/valley-of-
                     flowers">
                     Click here to visit official website </A>

                     </BODY>

                     </HTML>

                     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>

                                                                                       Images, Links and Forms in HTML5  91

| 88 89 90 91 92 93 94 95 96 97 98 |