Making TopOfPage anchor go all the way

liunx

Guest
Down in my page (<!-- m --><a class="postlink" href="http://www.wepay.com">http://www.wepay.com</a><!-- m -->), I have links to go "Back To Top Of Page." But it doesn't go all the way. Almost, not quite. Like, it stops one BR shy of the top. What am I doing wrong?<br />
<br />
Here is the code:<br />
<br />
<body text=#000000 vLink=gray aLink=#ff0000 link=#ff0000 background=bgbluestripe.gif><br />
<a name="#top"></a><font color="#FFFFFF"><br />
<BR><br />
<center><br />
<table bgcolor="#FFFFFF" cellpadding="15"><br />
<tr><br />
<td width="500"><!--content-->...remove as shown in red below...<br />
<br />
<body text=#000000 vLink=gray aLink=#ff0000 link=#ff0000 background=bgbluestripe.gif> <br />
<a name="#top"></a><font color="#FFFFFF"> <br />
<BR> <br />
<center> <br />
<table bgcolor="#FFFFFF" cellpadding="15"> <br />
<tr> <br />
<td width="500"><!--content-->The font tag, that was dumb. But I thought you have to have a </a> after you do <a name="#top"><br />
<br />
No?<br />
<br />
(It worked, by the way.)<!--content-->...full documentation can be seen, here:<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.3">http://www.w3.org/TR/REC-html40/struct/ ... l#h-12.1.3</a><!-- m --><!--content-->Originally posted by CyCo <br />
...full documentation can be seen, here:<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.3">http://www.w3.org/TR/REC-html40/struct/ ... l#h-12.1.3</a><!-- m --> <br />
<br />
Maybe I'm dense but it looks to me that they are closing the tag with </a>.<br />
<br />
EDIT: Oh, wait, I wa reading about the HREF way. I will look again.<!--content-->I have had the same problem on my site, so I did a global search & replace to remove the </a> from the <a name="#top"> and in IE it makes no difference, but in Mozila ALL text now behaves like a hover link and changes color with the mouse over.:(<!--content-->Please post your code...<!--content-->CyCo, since there are many pages and even the shortest is quite long with multiple linked stylesheets it is not practical to post the code. Furthermore, it is not yet ready to be uploaded to the web.<br />
<br />
I have run it through two different html validators and they both complain about omitting the </a>. Having since re-instated it all is well again, so I think I will live with it for now, thanks.<!--content-->I still don't understand about NOT having the </a>. I'm not very bright but I read up on it and it seems to me that </a> IS supposed to be there. That W3 is like it's written by lawyers. I'm like, huh?<!--content-->Start tag: required, End tag: required<br />
<br />
straight outta the W3C specs...;) <br />
<br />
and you might try putting some text inside the <a></a> tags, or possibly an &nbsp; would do fine...that might give the anchor something to...er...anchor to...<!--content-->
 
Back
Top