About Me

My photo
Nadiad, Gujarat, India
Hi Friends I am Vipul Soni, an Innovative web Designer & Developer with Excellent skills who thrives on challenges and is passionate for all areas of web Design & Development.

Thursday, 21 April 2011

html funda : how to go to specific position of the page like wikipedia

The most suitable example is wikipedia where you see the indexing with all topic names with links
when you click to the specific link it will go to that keyword.

     How it will done?
    Here is the solution

    Step 1 : define link with #
                 when u define the link of the same page or the page where u want to move with that keyword define the keyword with # 
                 example : <a href="page.html#keyword">keyword</a>

   Step 2 : the word where to move
              now span the keyword where is it locatedon the page
              example : <span id="keyword">keyword</span>

  Additional : If u want to go to the top of the page write this: <a href="#">keyword</a>


Web Designer.


Post a Comment