469,287 Members | 2,752 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

labels in web pages

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?

Regards
Phil

Jul 23 '05 #1
3 1460
"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.
Jul 23 '05 #2
On Wed, 15 Sep 2004 14:19:02 +0100, 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
Some browsers go to the top of the page when use *any* fragment identifier
that is not specified in the page.
Is it defined somewhere in the page, or is it pre-defined in html?
If pre-defined, is there a definitive list of them?


Nope, this is either error-handling or browser-specific extensions.
--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
Jul 23 '05 #3
P.R.Brady 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?

Regards
Phil


Thanks for the prompt replies!
Phil

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by rasta | last post: by
6 posts views Thread by DebbieG | last post: by
3 posts views Thread by Grim Reaper | last post: by
2 posts views Thread by Henry J. Murphy | last post: by
3 posts views Thread by Grim Reaper | last post: by
2 posts views Thread by Giovane Calabrese | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.