Home Segments Top Top Previous Next

822: Mainline

In Chapter 54, you begin to learn about servlets, which, in turn, requires you to understand HTML links.

Within your HTML file, you can place a link that refers to another HTML file. Links consist of URLs embedded in the first tag of an address–tag pair. For example, the following text contains a link:

<html>
<head>
<title>Welcome to the Link Demonstration</title>
</head>
<body>
<hr>
This file contains only a link to the
<a href="file:///d:/phw/onto/java/test.html">
meter demonstration. 
</a> 
<hr> 
</body> 
</html> 

Network browsers generally highlight the text between the two tags in some way that marks that text as a link. If you click on that text, your web browser will switch to the referenced HTML file.