Page 22 - PortGPT_V2.1_C8_Flipbook
P. 22

The output of the preceding code is shown:

























                                                                 Output


                                                            Tech Fact
                              The <MARQUEE> tag was added by Microsoft and is not supported by all
                                                          the web browsers.





                         LINKING WEB PAGES

                  A website is a collection of web pages which are interlinked with each other and contain 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 when clicked will take you to another web page.
                  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 a hand shape.
                  HTML allows us to create two types of linking which are:

                  •  Internal linking: The process of linking a particular section of the same web page or linking one
                      web page  to another web page of the same website is called internal linking. In this case, the
                      hyperlink and the linked section appears on the same website.

                  •   External linking: The process of linking a web page of one website to another website is called
                      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.



                  20    Premium Edition-VIII
   17   18   19   20   21   22   23   24   25   26   27