Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking mid page 1

Status
Not open for further replies.

ljwmis

MIS
May 23, 2001
48
GB
Is it possible to link from one page via <a href> to the middle of another page, instead of just to the page itself?

e.g. I do not want just to go to the page I want to go to a specific article in the page.
 
u can use anchors:

HTML Anchors

An anchor specifies a link to another location or the value to use when linking to this location from another location.

* Required attributes (one of):
o HREF if present, anchor is a link; HREF is a URL or #anchorname or URL#anchorname
o NAME enables the anchor to be a destination of a link

* Optional attributes
o REL, the relationship of the link
o REV, same as REL, but reverse direction
o URN, uniform resource number for the document
o TITLE, informational only, should match the title of the document whose address is given by HREF
o METHODS, provides information about the functions a user may perform on an object

* Usage
o Define a target location (name) in a document:
<A NAME=&quot;anchorname&quot;>Label</A>

o Link to a location in the same file:
<A HREF=&quot;#anchorname&quot;>Label</A>

o Link to another file:
<A HREF=&quot;URL&quot;>Label</A>

o Link to a target location in another file:
<A HREF=&quot;URL#anchorname&quot;>Label</A>

[sup]The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness. For he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee.......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top