A Name

T

thedarkman

When I learned the basics a decade ago, this was as follows:

<a name="jumptohere">

so now you are telling me it should read what:

<a name="jumptohere"></a>

I'm sure it was NEVER like that before.
 
D

Doug Miller

When I learned the basics a decade ago, this was as follows:

<a name="jumptohere">

You obviously failed to learn the basics a decade ago.
so now you are telling me it should read what:

<a name="jumptohere"></a>

I'm sure it was NEVER like that before.

It has always been like that. You failed to learn it correctly, and
you've been using it incorrectly ever since.
 
R

richard

When I learned the basics a decade ago, this was as follows:

<a name="jumptohere">

so now you are telling me it should read what:

<a name="jumptohere"></a>

I'm sure it was NEVER like that before.

If you were like many people who started off MS front page express, yes,
that's how they did it. Which is why FP produced crappy code.
Because there were very few choices in browsers then.

With but a few exceptions, every tag needs a closing tag.

Use this validator to check your errors.
http://validator.w3.org/
 
J

Jonathan N. Little

thedarkman said:
When I learned the basics a decade ago, this was as follows:

<a name="jumptohere">

so now you are telling me it should read what:

<a name="jumptohere"></a>

I'm sure it was NEVER like that before.

Your resistance to learning is stunning. You have been told repeatedly
that your "learning" is incorrect.

<http://www.w3.org/TR/html401/struct/links.html#edef-A>

<!ELEMENT A - - (%inline;)* -(A) -- anchor -->

Notice there is no "O" in but an "(A)" in the above declaration, that
means the closing A tag is *not* optional

But I also have repeatedly told you that you can accomplish the same
thing and inserting an anchor using the ID attribute.


<h2 id="The_Anchor">Blah</h2>
 
P

P E Schoen

"thedarkman" wrote in message
When I learned the basics a decade ago, this was as follows:
<a name="jumptohere">
so now you are telling me it should read what:
<a name="jumptohere"></a>
I'm sure it was NEVER like that before.

I searched for my oldest HTML files, and it seems to be this, from August
1996, when I had been on-line for only a couple of months. I think I did
some HTML by hand, but otherwise I often used Netscape Gold, which allowed
WYSIWYG editing and updating directly from the browser. In this case
apparently I used a version of MS Word:

<META NAME="GENERATOR" CONTENT="Internet Assistant for Microsoft Word
2.0z">

This file has a series of links, which IIRC worked properly at one time:

<UL>
<LI><A HREF="#DESC" >Description </A>
<LI><A HREF="#DUES" >Dues</A>
<LI><A HREF="#EVENTS" >Events </A>
</UL>

And the anchors apparently were built into the H2 tags, so the HREF would
find the next occurrence of the reference:

<H2>DESCRIPTION: </H2>

<P>
The Baltimore Singles Network consists of over 200 men and women...
<A HREF="bsninfo#DESC" >More details...</A>
<HR>

<H2>EVENTS: </H2>

<P>
Each activity is sponsored by one or more members, who are totally...
<HR>

I'm sure these worked at that time, and I must have learned to do that from
some sort of example or basic reference. The actual page is on the server
at:

http://www.bsn1.org/BSNHOME.HTM#OTHER

Note that this is the URL that was generated by clicking on the "Other
Items" link, but it does not work. I don't know when this stopped working.
The "new" home page uses the following to define the anchors:

<H2><A NAME="OTHER">Other Items and Links: </A></H2>

This page can be seen at http://www.bsn1.org. I stopped actively maintaining
the site around 2002 when I discontinued the organization, but I keep the
site up for historical purposes and perhaps a future reincarnation.

Paul
 
P

P E Schoen

"P E Schoen" wrote in message
This file has a series of links, which IIRC worked properly at one time:

<UL>
<LI><A HREF="#DESC" >Description </A>
<LI><A HREF="#DUES" >Dues</A>
<LI><A HREF="#EVENTS" >Events </A>
And the anchors apparently were built into the H2 tags, so the HREF
would find the next occurrence of the reference:

<H2>DESCRIPTION: </H2>

<P>
The Baltimore Singles Network consists of over 200 men and women...
<A HREF="bsninfo#DESC" >More details...</A>
<HR>

<H2>EVENTS: </H2>

<P>
Each activity is sponsored by one or more members, who are totally...
I'm sure these worked at that time, and I must have learned to do that
from some sort of example or basic reference. The actual page is on
the server at:

That is the original page. I fixed the errors so that it now validates, and
two of the links now have proper anchors that actually work:

http://www.bsn1.org/BSNHOME.HTM1

But I am curious if there was a time when the anchors did not need to be
specific NAME or ID:

<H2><A id="DESC">DESCRIPTION: </A></H2>

I don't even know what version of HTML was being used in 1996. And maybe
this only worked in Netscape?

Paul
 
P

P E Schoen

"P E Schoen" wrote in message
Sorry, those links should have been:
But I also found another non-working link in the text that I think used
to work:
<A HREF="bsninfo#DESC" >More details...</A>
Just curious.

Oh, well, never mind. I think I was just learning HTML when I put that
together. I just found another HTML page written at the same time, with
proper anchors.

http://www.bsn1.org/BSNINFO.HTM

And it seems that the way to refer to them from another page is to use the
entire URL:

http://www.bsn1.org/BSNINFO.HTM#ADS

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,472
Messages
2,571,834
Members
48,802
Latest member
shadowoftheunknown
Top