<!-- HTML:Basics snippet 7. -->
<!-- Hyperlinks and anchors. -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>View snippet page</title>
</head>
<body>

<!-- internal link to bottom of page -->
<p><a href="#bottom">Go to bottom of the page</a></p>

<!-- standard text link -->
<!-- full absolute path -->
<p><a href="http://www.justfigures.co.uk/xhtmlbasics/6_testLink2.php">Standard text link: absolute</a></p>

<!-- standard text link -->
<!-- absolute path without domain specified: if resource is on the same domain -->
<p><a href="/xhtmlbasics/6_testLink2.php">Standard text link: absolute</a></p>

<!-- standard text link -->
<!-- relative path -->
<p><a href="6_testLink2.php">Standard text link: relative</a></p>

<!-- standard text link -->
<!-- relative path: if resource is in a higher directory (folder) -->
<p><a href="../6_testLink2.php">Standard text link: relative</a></p>

<!--  text link opening in a new window -->
<p><a href="6_testLink.php" target="_blank">Text link that opens in a new window</a></p>

<!-- standard image link -->
<p><a href="6_testLink2.php">
<img src="over.gif" width="22" height="22" alt="Image link" title="Image link"></a></p>


<!-- email client link with subject line -->
<p><a href="mailto:me@me.com?Subject=Test">Email link</a></p>


<!-- anchor for internal link -->
<!-- the 'id' attribute has essentially replaced the use of the 'name' attribute,
but use both, the 'id' identifier must start with an alphabetic letter or an underscore -->
<a name="bottom" id="bottom"></a>

</body>
</html>