Re: Strange behavior

by "Donna M Smillie" <dms(at)zetnet.co.uk>

 Date:  Fri, 19 Nov 1999 20:20:54 -0000
 To:  <hwg-basics(at)mail.hwg.org>,
"Michael J. Langum" <MJLANGUM(at)opm.gov>
 References:  opm
  todo: View Thread, Original
Hi Mike

----- Original Message -----
From: Michael J. Langum <MJLANGUM(at)opm.gov>
[snip]
> The original writer of the page placed an anchor tag with attribute
> NAME="TOP" at the top of the inner cell.  I thought it would be
> better form to put this anchor above the entire table block, and
> moved it just below the "BODY" tag.
>
> When I tested the page (in IE3), clicking on my up-arrow gifs sent
> me to the MIDDLE of the central cell, not the top.  Whe I added a
> non-blanking space to the "TOP" anchor tag, it worked.  Can
> anyone explain?

Some browsers/versions simply don't like empty A tags, I'm afraid.  Those
that don't tend to produce erratic results when confronted with one, as
you've just discovered.  Quote here from the HTML 4.0 spec:

=== start quote ===
Note. User agents should be able to find anchors created by empty A
elements, but some fail to do so. For example, some user agents may not
find the "empty-anchor" in the following HTML fragment:

<A name="empty-anchor"></A>
<EM>...some HTML...</EM>
<A href="#empty-anchor">Link to empty anchor</A>
=== end quote ===

Regards,
Donna
--
dms(at)zetnet.co.uk
Different Worlds:  http://www.users.zetnet.co.uk/dms/
Pictures of the Past, The Leslie Smith Family,
An Introduction to HTML, Copyright Considerations
Calendar Wallpapers, Online WW1 Bookshop

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA