April 01, 2006

HTML - Linking within a page

Earlier, I was wondering how do I link to an article that requires scrolling down to middle of the page. The below answer is being borrowed from this site.


To link to a specific section in a page, you need to place
<A NAME="section_name"></A> tags at the beginning of the section you will be linking to (section_name = a unique name for each
section of a page).

Then to link to that section from within the same document, use the
anchor tag:
<A HREF="#section_name"> text to be linked
</a>


To link to this section from another page, add #section_name to the end of the url of the
page, i.e. http://server_name/path/filename.html#section_name.

2 Comments:

seabird said...

this confuses me. i just don't understand how to cut and paste and highlight etc.... i wish i knew how all this works it would make life so much more enjoyable and easy for me.

when i go to a website i like and wish to post something at say a community board, many times i don't bother because i don't know how to use it properly. like say: if you write a post and instead of having everything on the front page where it might upset the site moderators you must put it inside by : more inside- well, how does one do that?

anyway, just a slight complaint in life, no big deal. just venting...

. said...

酒店經紀PRETTY GIRL 台北酒店經紀人 ,禮服店 酒店兼差PRETTY GIRL酒店公關 酒店小姐 彩色爆米花酒店兼職,酒店工作 彩色爆米花酒店經紀, 酒店上班,酒店工作 PRETTY GIRL酒店喝酒酒店上班 彩色爆米花台北酒店酒店小姐 PRETTY GIRL酒店上班酒店打工PRETTY GIRL酒店打工酒店經紀 彩色爆米花