Linking Within The Same File
In the example below, the three links at the top of the file point to
three separate locations farther down within the same file. Notice
when the first two links are visited, the link destination appears
at the top of the browser, whereas the third link does not display at the
top of the browser. This is because the browser ran out of file to
display. The third link could be forced to show up at the top of the browser
by padding the bottom of the file with <br /> tags.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Linking within the same file</title>
</head>
<body bgcolor="#bdbdbd" text="black" link="blue" vlink="purple">
<br />
<b>
<center>
<h2>Linking within the same file</h2>
Visit <a href="lesson04-07-vr-b.htm#link1">Link #1</a>.<br />
Visit <a href="lesson04-07-vr-b.htm#link2">Link #2</a>.<br />
Visit <a href="lesson04-07-vr-b.htm#link3">Link #3</a>.<br />
<br />
<br />
<a name="link1">
<h2><hr width="400" />Sample Link #1<hr width="400" /></h2>
</a>
<br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br />
<a name="link2">
<h2><hr width="400" />Sample Link #2<hr width="400" /></h2>
</a>
<br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br />
<a name="link3">
<h2><hr width="400" />Sample Link #3<hr width="400" /></h2>
</a>
<br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br />
</center>
</b>
</body>
</html>
|