a href=#

Discussion in 'HTML & Website Design' started by redhits, Sep 3, 2009.

  1. #1
    Can somebody give me an example about how a href=#variable is working?

    how i do define that #variable inside a page?

    does this also works well with php & a forum submit?!
     
    redhits, Sep 3, 2009 IP
  2. spbx

    spbx Peon

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The # can be used as an anchor.

    For example, if you have a section named "Section 1", and you want a link that takes you to this section on the same page, you would do something like this:

    <a href="#section1">Click Here To Go To Section 1</a>

    and then, somewhere else on the page, you'd put <a name="#section1">Whatever Here</a> around where you want the above link to take you.
     
    spbx, Sep 3, 2009 IP
  3. Bluey

    Bluey Member

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    This link could also help you, as it has for us.

    This tutorial teaches you everything about HTML.
    http://www.w3schools.com/html/default.asp
     
    Bluey, Sep 4, 2009 IP
  4. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #4
    i see it's not working if you also try to send a $_GET post with it...

    like

    a href="#love?girl=mihaela" will not work
     
    redhits, Sep 4, 2009 IP