Posted by Olli Mδntyranta on 12/15/06 14:21
webactor@gmail.com wrote:
> Hi Folks
>
> How do i create "Sub-links" ?
>
> Ex. if you write "netcraft" on Google
>
> You will see that there appear some "sub-links"
> That links directly to specific elements on the website
>
> How do i make create "Sub-links" for my website ?
>
>
> Hope you kan help my
>
> C yaaaa - Kimo
Hi!
There are two ways:
<a href="#there">Read there</a>
<!-- some markup -->
<p id="there">This is the section you wanted to have linked</p>
<a href="#orThere">Or read there</a>
<!-- some markup -->
<p><a name="orThere">This is an anchor</a>,
which can also be linked to!</p>
Using the first method is easier and more common today, since you have a
simpler markup that way. Remember that while you may use numbers in 'id'
-attribute, you may not use them as the first digit.
You can also link to a specific part of the page from other page using
the same method:
<a href="otherpage.html#here">Interesting part on other page</a>
Navigation:
[Reply to this message]
|