<class home>  <html part II>   <back   next>

html continued

Anchors:

links bring the user to the top of an html page. With anchors you can jump to a particular section of an html page.
First you must name the place that you want to go to:
<A name="anchor name">words or image to go to</a>
Next you create an <a href> to that name:
<a href="#anchor name
>go to Anchor</a>
If your anchor is on another page:
<a href="page.html#anchor name
>go to Anchor</a>


example>>> anchoring to another section of the same page and to another page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<title>Pony Pony Pony</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="#pony1">pony 1</a>
<br />
<a href="#pony2">pony 2</a>
<br />
<a href="http://www.larabank.com/class/html2/example2/pony2.html#pony3">pony3</a>
<br />
My pony is near.
<br /><br /><br /><br /><br /><br /><br /><br />
Here is a small version of my pony.
<A name="pony1">
<img src="pony.gif" /></a>
<br /><br /><br /><br /><br /><br /><br /><br />
Here is a larger version of my pony.
<A name="pony2"><img src="pony3.gif" /></a>
</body>
</html>