|
Posted by Olli Mδntyranta on 12/15/06 14:34
Olli MΓ€ntyranta wrote:
> 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>
>
>
Oh, what a stupid way I wrote my answer. I hope you understood it
anyway. I put the stress on anchors INSIDE the webpage, which wasn't
actually what you were asking for. Pay attention to the last line I wrote.
Now I'll stop writing before I make things any worse, and start spending
the weekend.
Olli,
vi er hvite ,vi er blΓ₯e (?) vi er finske dynamit, or something like that...
[Back to original message]
|