Page 69 - TP-Play_V-2.0_Book-8
P. 69

Tech

               Funda
                              Some of the image formats supported by HTML are Joint Photographic Experts
                              Group  (JPEG),  Graphics  Interchange  Format  (GIF) and  Portable  Network
                              Graphics (PNG).



                LINKING WEB PAGES

            A website is a collection of web pages which are interlinked with each other and contains related
            information. These web pages are linked with the help of a feature of HTML called hyperlink.
            A hyperlink is generally an underlined text which takes you to another web page when clicked.
            Generally, hyperlinks are seen in blue colour. Images can also be used as hyperlink. When mouse
            is hovered over it, the mouse pointer changes to hand shape. When a hyperlink is clicked, its
            colour changes to purple.

            HTML5 allows us to create two types of linking which are:

               ✶  Interlinking:  The  process of  linking a  particular  section  of  the  same web  page  is called
               interlinking. In this case, the hyperlink and the linked section appears on the same web page.
               Hence, interlinking is also known as internal linking.
               ✶  Intralinking: The process of linking a web page to another web page of the same website or
               another website is called intralinking. It is also known as external linking.
            Anchor Tag

            Anchor tag is used for creating hyperlinks in HTML web pages. It is a container tag and used as
            <A> Hyperlink Text </A>. Where, Hyperlink Text is a text or an image.

            The <A> tag has the following attributes:

               ✶  HREF: HREF stands for Hypertext Reference. It takes the URL of the web page which we
               want to link when we create external linking.
               ✶  TARGET: This attribute is used to specify the place in which the linked web page will open. It
               takes any one of the following four values:
                _blank: Opens the linked web page in a new window or tab of the web browser.

                _parent: Opens the linked web page in a parent window or tab of the web browser.
                _self: Opens the linked web page in current window or tab.
                _top: Opens the linked web page in the window that is on top in all the windows.
            External web pages can be linked using href attribute of the anchor tag. The href attribute takes
            the URL of the web page in double quotes. The syntax to create a hyperlink is:

            <A HREF = "URL of Web Page" TARGET="_blank"> Link Text </A>








                                                                    Images, Links and Frames in HTML5        69
   64   65   66   67   68   69   70   71   72   73   74