How to link to something further down a page

Discussion in 'HTML & Website Design' started by sandhuharvey, Oct 26, 2008.

  1. #1
    I want to link to something further down one of my pages.
    For example:
    When you click on a link it jumps to a paragraph further down the page.

    How would i do this?
     
    sandhuharvey, Oct 26, 2008 IP
  2. shahilroyhere

    shahilroyhere Well-Known Member

    Messages:
    189
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #2
    This is done in this way:

    
    <a href="down">Click to go down</a>
    This is sample text.
    This is sample text.
    This is sample text.
    This is sample text.
    <a name="down"></a>Down is here.
    This is sample text.
    This is sample text.
    This is sample text.
    
    Code (markup):
    So clciking on the "Click to go down" will bring you to the "Down is here".
    Note: The value of the 'href' and 'name' should be the same.
     
    shahilroyhere, Oct 26, 2008 IP
  3. sandhuharvey

    sandhuharvey Active Member

    Messages:
    193
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks mate, added to my site!
     
    sandhuharvey, Oct 26, 2008 IP