Where to put an anchor?

  powerless 18:50 30 Oct 05
Locked

a name="top"> /a>

I want to put the above in my page to allow the user to click a link to return to the top of the page.

But where do you generally put it? Not before the doctype as I just found out :-(

Just below the meta data?

  Forum Editor 19:25 30 Oct 05

should be at the beginning of the section that you want linked. In other words, the anchor tag tells the link where to go.

It isn't necessary to have any text or information between the open anchor tag and the close anchor tag by the way.

  powerless 22:13 31 Oct 05

I don't get that?

The anchor is a place where the link will go to, so how does it know where to go, when there will be no link to it [as there is nothing to link to]?

[errr if that makes sense]

  Forum Editor 23:15 31 Oct 05

<A HREF=#AnchorName>(here you can put text to describe the link)</A>

Then use this tag to define the place in the HTML document that you want the link to go to:-

<A NAME=AnchorName>(here you can put text at the spot where you want the link to go)</A>


Does that help?

This thread is now locked and can not be replied to.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

This abstract video touches on division in our technologic world

Best alternatives to iTunes for Mac | Best music players for macOS: Free your music from the…