Basic HTML Link Question

Discussion in 'HTML & Website Design' started by jawinn, Sep 26, 2006.

  1. #1
    How do I create a link that when clicked will scroll down to a specific part of the same page? For example the link is at the top of the page and I want it to point to an item half way down the same page.

    Thx
     
    jawinn, Sep 26, 2006 IP
  2. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #2
    Enclose the item that you want to point to between the "a name tag":

    <a name="item">blah blah blah</a>
    Code (markup):
    replace blah blah blah with the actual item...

    Then link to this section of the page using this:

    <a href="#item">link text</a>
    Code (markup):
     
    eXe, Sep 26, 2006 IP
    jawinn likes this.
  3. Kirtan

    Kirtan Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    lol. Anchor Name Question after made 570 posts.
     
    Kirtan, Oct 1, 2006 IP
  4. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #4
    Yeah, this seems very strange to me too, but who knows ...


    tayiper
     
    tayiper, Oct 2, 2006 IP
  5. jawinn

    jawinn Active Member

    Messages:
    1,024
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    88
    #5
    You'll probably be shocked that my 570 posts did come from criticizing other people's shortcomings.
     
    jawinn, Oct 2, 2006 IP
  6. jumpenjuhosaphat

    jumpenjuhosaphat Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    We are always learning, I will still be asking questions that some may think of as "simple" when I'm at 5000 posts.
     
    jumpenjuhosaphat, Oct 2, 2006 IP