Lesson 4: Linking Tags
(Linking to Documents)

When linking to document types that the browser can't display, the browser will generally load the correct application or plug-in for viewing the document. The most basic document type is a "TXT" file (ASCII file). When you link to a text file, some browsers like FireFox will display the contents of the text file. Internet Explorer, however, treats the file as an HTML file and displays the results of any HTML code within the file. In this example, notice that the clickable text has non-clickable text on either side.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>View a Text File</title>
</head>

<body bgcolor="#bdbdbd" text="black" link="blue" vlink="purple">
<b>
<center>
View the <a href="defaults.txt">defaults.txt</a> 
file for this course.
</center>
</b>
</body>
</html>