English

Links

Advertisements
  • Creating links to web pages and URLs & within same page
  • Various type of URLs that can be used in links

Links

A link is a pointer to another document. In an HTML document we can create a link to other document or file or an image by using <A> anchor tag . Links are necessary as you may not place everything on your webpage. 

Creating links to web pages and URLs & within same page 

In a web page there may be needed a lot of links to the other web pages. The links to the other web pages can be established as:  

<A HREF= “page2.html”> page two </A> 

When you click on page two, page2.html page will be referenced.  

When we have long pages, it is convenient to provide links between sections of the same page. To provide such a link, labels or names in page are created with anchor tag.  

For example,

                 <A HREF= “#Contact”> Contacting Authors    </A>

                              ------------------------ 

                  <A NAME= “Contact”></A> 

"Contact" is a label in the same page. The pound sign prefix in HREF attribute indicates that the jump is internal to this page. 

Various type of URLs that can be used in links 

We can use different protocols to create links. So far, we have seen use of http protocol to create link. Other Protocols are: 

  1. FTP URL’s: The File Transfer Protocol, FTP, is used to deliver text or binary files over the internet.
  2. Gopher URL’s: The Gopher protocol lets you connect to a Gopher site and transfer several different types of files.
  3. News & Telnet URL’s: News refer  to News group. The Telnet protocol is a communication facility that lets you log into other computers or use interactive services on remote
If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×