Page 82 - TechPluse_C8_Flipbook
P. 82

HREF: HREF stands for Hypertext Reference. It takes the URL of the web page which we want

                      to link when we create external linking.
                      NAME: This attribute takes the section name of the web page as its value when we create
                      internal 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.
                      TITLE: This attribute is used to define the title of a link, which appears to the user as a tooltip.

                  Some attributes used within the <BODY> tag to define the default colours for link, visited link,
                  and active link on a web page are as follows:
                      LINK: This attribute is used to set the color of the links.

                      VLINK: This attribute is used to set the color of the visited links.
                      ALINK: This attribute is used to set the color of the active link.
                  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.

                  First page of a website, also known as Home page contains various links of other web pages. Let
                  us take an example of a website of the ABC Public School in which we are using external linking.
                  The Home page of the website is as shown:





























                                                                 Output
                  Preceding web page contains six hyperlinks Admissions, Events, Sports, Activities, About Us and
                  Contact Us which are created by using the <A> tag. The code to create the Home.html web page
                  is as follows:



               80       Premium Edition-VIII
   77   78   79   80   81   82   83   84   85   86   87