Page 107 - ConceptGP_C7_Fb
P. 107

A hyperlink is generally an underlined text that when clicked will take you to another web page.
                 Generally, hyperlinks are seen in blue colour. HTML allows us to create two types of linking which are:

                   Interlinking (Local): The process of linking a particular section of the same web page is called
                   interlinking. In this case, the hyperlink and the linked section appear on the same web page.
                   Hence, interlinking is also known as internal linking.

                   ntralinking (Global): The process of linking a web page to another web page of the same
                   I
                   website or another website is called intralinking. It is also known as external linking.


                 CREATING LINKS
                 To create a link, we use the <A> tag (A stands for anchor), thus it is called an anchor tag or a link
                 tag. An anchor tag is a container tag used with the HREF attribute (which stands for Hypertext

                 Reference) to specify the destination of the link.
                 Syntax to create a hyperlink:

                 <A HREF = “destination URL”> Link Text </A>

                 Links can be text or images. When a user hovers the mouse pointer over a link, the pointer takes
                 the shape of a pointing hand, indicating the presence of an active link. Clicking on a hyperlink
                 takes us to a web page that contains more information about it. The address of the web page is
                 specified in the HREF attribute.



                                          1.  What is the use of the ALT attribute?
                                             _______________________________________________________________
                         uiz   Bee        2.  What is the difference between a local link and a global link?


                                             _______________________________________________________________



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

                 <!DOCTYPE HTML>
                 <HTML>
                 <HEAD>

                 <TITLE> Creating Hyperlink </TITLE>
                 </HEAD>
                 <BODY>
                 <H1 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-offlowers">
                 Click here to visit official website </A>


                                                                                   Images, Links and Forms in HTML5  105
   102   103   104   105   106   107   108   109   110   111   112