| Amazon Books |
|
HTML
HTML Tutorial
Other
|
Hypertext Links
Links There are internal, external, and relative links. Internal links allow navigation within the same page, external links allow you to travel to pages on a different server and relative links allow you to travel to pages on the same server. Every hyperlink contains a Uniform Resource Locator (URL). A URL is the address of a Web page. The URL consists of the protocol and the destination. The protocal designates the type of resource to be accessed. Most often on the Web is http:// (HTML documents). Other protocols are gopher://, ftp://, and telnet://. The destination can be a file name, directory name, or a computer name. The page you are now viewing is http://www.perryland.com/html4.html. http://indicates the type of Internet service being used. www.perryland.com indicates the domain name and /html4.html indicates the directory and file name on the server. Internal Links
Internal links are used when you want to provide users with the ability to navigate between
different sections of a page. You must first name the place in the document that you want to
navigate to <A NAME= "target">desired text </A>. The link to the target is
External Links The code for an external link is simply <A HREF="URL">Link Text Here</A> so a link to IBM would be <A HREF="http://www.ibm.com">IBM</A> and it would look like this IBM. Relative Links When linking to a page that is on the same server as the target page, all that need be designated is the page name. For example, the link to the home page from the page you are now viewing uses the code <A HREF="index.html">Home</A>. This is assuming that both pages are in the same directory. If both pages were not in the same directory, the directory of the target page would have to be included in the code. Contact Us Links The code that creates an Contact Us hypertext link is
|