Page 71 - TrackpadV2.1_Class8
P. 71

HYPERLINK IN HTML

                 A website is a collection of web pages that are interlinked with each other and contain related
                 information. These web pages are linked with the help of a feature of HTML called a hyperlink. 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:

                   Internal linking (Local): This type of linking connects one page of a website to another page on
                   the same website. For example, if you’re reading a blog post about healthy recipes and there's a
                   link to another post on the same website about meal planning, that’s an internal linking. It helps
                   you find more information within the same website.
                   External linking (Global): This type of linking connects a page on one website to a page on a

                   different website. For example, if the same blog post about healthy recipes includes a link to a
                   well-known nutrition site for more information on dietary guidelines, that’s an external linking.
                   This type of linking provides additional resources from outside the original website.


                 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.









                                                                                   Images, Links and Forms in HTML5  69
   66   67   68   69   70   71   72   73   74   75   76