How can I create a link to jump to sub-sections of a website?

Siya November 8, 2011
Pinterest Stumbleupon Whatsapp

I’d like to know, how do I link on the same webpage. e.g. link the contents of an article, if someone click on a particular content they are taken straight to the section where that content is described.

  1. Siyamava
    November 10, 2011 at 9:33 pm

    Thank u guys both. i went with your solution mike and it worked, thanx a lot!

  2. Mike
    November 8, 2011 at 6:47 pm

    It would be good to know which language you are coding in. 
    The options sometimes differ depending on whether you use HTML4, XHTML , HTML5, ...

    for example a very simple options is declaring the section like
    <a name="section1">some title here</a>

    with the link to this point of the page being
    <a href="#section1">link to blabla</a>

  3. FIDELIS
    November 8, 2011 at 6:40 pm