"P.R.Brady" <is****@bangor.ac.uk> wrote:
We have a number of pages on our site which use labels which I cannot
find defined (with for example <a name= > ) but which work perfectly
well. 'top' and 'side bar' in particular.
eg 'top' in
http://www.bangor.ac.uk/ced/studentguide.htm
Is it defined somewhere in the page, or is it pre-defined in html?
If pre-defined, is there a definitive list of them?
Your clue should lie in the realization that it's pretty far-fetched
to think that a browser would know, without being told, which part of
the page is the "side bar".
Some browsers will jump to the top of the page for *any* fragment
(fragment = the part of a URL to the right of the # sign) that isn't
defined on the page. "#top" has no intrinsic meaning; it could just as
easily be "#ashfdioasdhf".
You don't need <a name="..."> to create a proper target for a URL
fragment, however: the ID attribute on *any* element will serve the
same purpose in modern browsers.
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.