• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Link to a certain section of a page? How to?

Status
Not open for further replies.
Joined
Jan 22, 2006
Posts
886
Reaction score
10
Say i have a long text document with different headed sections.

How can i provide a link to go straight to a certain section of a page?

For example if my website had two pages:

MENU PAGE

TEXT PAGE

if i wanted to put links on the menu page to different sections of the TEXT page, how do i do this?

I hope i've explained it clearly enough!
 
HTML Named Anchors are the keywords you're looking for:

http://www.w3.org/TR/REC-html40/struct/links.html

<a href=#thisIsWhereIWantItToGo>link to that part of the page</a>

<a name=thisIsWhereIWantItToGo>destination part of page</a>

something like that

sorry - that was same page. different page is similar but with # directly after destination url

so <a href=otherpage.html#thisIsWhereIWantItToGo> go there </a>

-aqls-
 
Last edited:
Thanks for the quick reply.

I really should have known the answer myself, but i've never actually done that before!

Thanks
 
Status
Not open for further replies.
Top Bottom