You are here: Re: How do i create "Sub-links" ? « HTML « IT news, forums, messages
Re: How do i create "Sub-links" ?

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...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация