Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 23 - 2625 PortGPt V2.1
P. 23

    •  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 colour of the links.

                     •  VLINK: This attribute is used to set the colour of the visited links.

                     •  ALINK: This attribute is used to set the colour 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:

                     <HTML>
                     <HEAD>
                     <TITLE> Home Page </TITLE>
                     </HEAD>

                                                                                     Images, Links, Audio, Video in HTML  21

| 18 19 20 21 22 23 24 25 26 27 28 |