Scrolling down

Discussion in 'HTML & Website Design' started by prilep, Mar 21, 2007.

  1. #1
    Hey guys i have seen this on a couple of websites. Here is an example

    School

    Teachers

    Whatever


    So basically what i need since my page is going to have so much text i need it for example when im reading school i can click a link on teachers and it will take me to the teachers paragraph. I have seen this on many sites but i just dont know how to do it.

    Thanks

    - Prilep :D
     
    prilep, Mar 21, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You can link to any element that has an id using the # mark.
    
    <p><a href="#teachers">skip to teachers</a></p>
    <p><a href="#school">skip to school section</a></p>
    ...
    <h2 id="teachers">Teacher section</h2>
    ...
    <a id="school"></a>
    <h2>School section</h2>
    Code (markup):
    cheers,

    gary
     
    kk5st, Mar 21, 2007 IP
  3. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #3
    O i see. Thanks alot. Green rep!

    - Prilep :D
     
    prilep, Mar 21, 2007 IP