14 replies
  • WEB DESIGN
  • |
How do I create a link so that it goes to a certain point in a page? For instance If I want to make a hyper link to my terms and condistions page but I want ity to point half way down the page to the exact spot where the terms specifically mention refunds.
#hyperlink #question
  • Profile picture of the author ViralSO-CEO
    You need to create a name attribute. Here's a page that will give you the basics along with the html code to use:
    HTML Links
    {{ DiscussionBoard.errors[3033784].message }}
    • Profile picture of the author Emailrevealer
      Thanks, that's just what I need and so simple. Thank you. Amazing how my former web designer kept telling me it was impossible...
      {{ DiscussionBoard.errors[3034175].message }}
      • Profile picture of the author Emailrevealer
        I'm having big trouble...


        I'm using this example <a href="http://www.w3schools.com/html_links.htm#tips">
        Visit the Useful Tips Section</a>

        as this:
        <A HREF="http://www.emailrevealer.com/terms.htm#When "> No Hit No Fee
        </A>

        It takes me to my terms and conditions page but to the top of the page. Not to the portion I'm trying to name. Any help?
        {{ DiscussionBoard.errors[3052301].message }}
  • Profile picture of the author Istvan Horvath
    Think...

    If your name is
    HTML Code:
    <a name="NoHitNoFee"></a>
    then why do you use a different target???

    Instead of
    HTML Code:
    http://www.emailrevealer.com/terms.htm#NoHitNoFee
    Signature

    {{ DiscussionBoard.errors[3052818].message }}
    • Profile picture of the author Emailrevealer
      Ok I changed it to
      <A HREF="http://www.emailrevealer.com/terms.htm#NO HIT/NO FEE "> No Hit No Fee
      </A>

      But it still goes to the top of the page.
      {{ DiscussionBoard.errors[3053461].message }}
  • Profile picture of the author Istvan Horvath
    Seemingly you are not able to copy/paste... sorry.

    In your terms page's source code you have this (copying here for you the second time!):
    HTML Code:
    <a name="NoHitNoFee"></a>
    In between the quotes you have NoHitNoFee

    THAT is what you want to add, exactly as it is spelled, to the end of your URL.

    BTW, I gave you the exact URL to use in my post above. What is so complicated that you couldn't copy it from my post?
    Signature

    {{ DiscussionBoard.errors[3053511].message }}
    • Profile picture of the author Emailrevealer
      Ok I fixed that one thanks but I have the same problem with this one


      <A HREF="http://www.emailrevealer.com/terms.htm#Estimated">
      Estimated</A>turn around time for an Email Trace Report is 24 hours to 14 days.
      {{ DiscussionBoard.errors[3053629].message }}
  • Profile picture of the author Istvan Horvath
    Man, what is so complicated in this whole anchor stuff?

    You do NOT have such a name tag inserted in your term.htm
    How do you expect it to work?

    In plain words: in the html code of your term.htm file there is NO such code:
    HTML Code:
    <a name="Estimated"></a>
    And if you don't have it - it wiil not work.
    Signature

    {{ DiscussionBoard.errors[3053664].message }}
  • Profile picture of the author Emailrevealer
    Where does it have to be inserted?
    {{ DiscussionBoard.errors[3054035].message }}
  • Profile picture of the author Istvan Horvath
    How do I know where do you want to place it in your webpage...?
    Signature

    {{ DiscussionBoard.errors[3054227].message }}
    • Profile picture of the author Emailrevealer
      You don't .
      I'm asking where to put it. So now you tell me it needs to be put on the web page. Thank you.

      So I need to put something on the terms and conditions page? Because I didn't have to do that for the first one.
      {{ DiscussionBoard.errors[3054421].message }}
  • Profile picture of the author Istvan Horvath
    1. Go back in read that link in the first reply above by ViralSO. Read it several times - no, this is not a joke... read it until you get it.

    2. Learn some more basic HTML; e.g. if there is a link... there has to be a target.
    e.g. Learn HTML Links <== this has been done by this code:
    HTML Code:
    <a href="http://www.w3schools.com/HTML/html_links.asp">Learn HTML Links</a>
    In the code above the a href AND the closing /a are the html anchor tag (opening tag and closing tag). - green in the code above
    The part after the = in quotes is the URL. - blue in the code above
    Learn HTML Links - is the link text or anchor text. - black in the code above

    And you MUST have a web page at that address/URL in order to have a working link.

    These links are the essence of the web... they are also called hyperlinks.
    Hint: HTTP = HyperText Transfer Protocol

    3. The bookmark or "name" anchor tags works similarly.
    a) you have a hyperlink pointing not to a webpage but a certain point in that webpage - ergo, you MUST have that 'point' marked somehow.
    b) you insert the <a name="whatever"></a> tag wherever you want the link to "jump".
    c) there is NO link/anchor text for <a name...
    d) To make a link that goes where you want, i.e. to jump on the page to the desired section: you need to add after the URL of the page #whatever - i.e. the exact word/string what you put in quotes when creating your name anchor [see b)]

    You really should spend some time on that W3 school site...

    P.S. If you didn't put that code there for the first one... someone did it for you
    Signature

    {{ DiscussionBoard.errors[3054650].message }}
  • Profile picture of the author Emailrevealer
    See that. Thanks. No I never put it on that page. It must have been put there some time ago when my old web master was working on this for me.
    Well I'm stuck then. Because I can't get to that page at this time.

    Thanks
    {{ DiscussionBoard.errors[3054709].message }}
  • Profile picture of the author Istvan Horvath
    If it is YOUR page and it is hosted on YOUR domain with YOUR hosting package... how comes you cannot get to that page?

    And just as a final thought in this thread (I will not answer any more questions): if you don't have access to a webpage (file) or a website... WHY are you asking "how to edit" questions? Isn't it silly?
    Signature

    {{ DiscussionBoard.errors[3054858].message }}

Trending Topics