Quantcast

Singapore Web Hosting

Singapore Web Hosting - hosting menu

Singapore Web Hosting - Hosting menu

Singapore Web Hosting

Home » Support » Web Hosting User Guide



Singapore dedicated servers


Web Hosting User Guide - HTML and CGI Script - Hyperlinks

 

Hyperlinks are generally the text or picture that you find on a Web site that can be "clicked on." These links will take users to another Web page (hyperlink) or a different area of the same Web page (anchor).

Below are examples of the HTML for hyperlinks:

<a href="http://www.hostsg.com">HostSG</a>
<a href="http://www.google.com">Google</a>
<a href="http://www.yahoo.com">Yahoo</a>

Every hyperlink references a Uniform Resource Locator, or URL. Internet browsers use URLs to access resources on the Internet such as HTML documents, pictures, program tapes, news-articles, a telnet session, etc. In the first hyperlink example above, the URL http://www.hostsg.com describes the type of access method being used (http) and the server location which hosts the Web site (www.hostsg.com). All Web sites have URLs.

A named anchor has two parts: one that designates the hyperlink to the anchor, and the other that designates where the anchor is located.

The first part is written as follows:

<a href="#anchor">Name of Anchor</a>

Where anchor is the anchor name of your choosing, and Name of Anchor is the preferred text you want to hyperlink.

The second part is written as follows:

<a name="anchor"></a>

Where anchor is the anchor name you used to create the first part of the anchor. This HTML code is put next to or around text or other elements to which you want to hyperlink.

Download of Pictures, Sounds, Programs, and Other Files

As you know, the anchor <A> tag serves for the implementation of hypertext links. In addition, the tag can be used to download programs or other files. This method is very easy to implement and is, in many cases, better than the classical download method, anonymous FTP.

You can store many file types in your allocation of space on the server. You can reference these files through the HREF attribute. How the browser will react when such a link is activated depends upon the browser used and the type of file. Some file types are supported directly by the browser. For example, every browser can work with pictures saved in GIF or JPG format. In contrast to the <IMG> tag, which loads the picture automatically and places it within the HTML document, the <A> tag requires that you first click on the link. The picture is then loaded into a browser window.

Many developers embed a small preview picture, called a thumbnail, in the original document with the <IMG> tag. They then place a hyperlink tag <A HREF=""> around the image tag that links out to a bigger version of the picture. The small picture must be clicked if you want to see it in full size.




Related Information

What is HTML
Adding Images
Cascading Style Sheets
Meta Tags


CGI Scripts

Installing Formmail
Installing Counter