Basic HTML Question

Discussion in 'HTML & Website Design' started by LinkSales, Jun 18, 2009.

  1. #1
    What is the code for a selection...

    Like faq pages where you click a question and it points you to /faq/#selection?

    Anyone know?
     
    LinkSales, Jun 18, 2009 IP
  2. dir_waleed

    dir_waleed Well-Known Member

    Messages:
    265
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    138
    #2
    sure thing :) ..

    put in the client ( wanted ) section of the page <a name="Whateverrr">bla bla bla</a>

    and if u want the link to take u to that section

    <a href="#Whateverrr">
    Jump to bla bla bla</a>

    or if its in another page u can use this :

    <a href="http://www.sitename.com/Pagename.htm#Whateverrrr">
    Jump to bla bla bla</a>
     
    dir_waleed, Jun 18, 2009 IP
  3. MhW

    MhW Active Member

    Messages:
    370
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    85
    #3
    Do you mean anchor links?

    <a href="#copyright">Jump to copyright</a>
    Code (markup):
    At the bottom of your page:
    <a name="copyright">&copy; YourSite.com 2004-2009</a>
    Code (markup):
    Is that what you mean?
     
    MhW, Jun 18, 2009 IP
  4. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #4
    He want to link to other page and directly goes to the anchor link.
     
    bluebenz, Jun 18, 2009 IP
  5. kashifmughal

    kashifmughal Member

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    question must be clear (straightforward) then anyone can help about that, so i think MhW describing right, follow him please...
     
    kashifmughal, Jun 18, 2009 IP
  6. lonzie

    lonzie Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #6
    For each section on the page have:

    <a name="section1">Text text text</a>
    Code (markup):
    Then on the page you want to link to it just have

    <a href="/faq#section1">Section 1</a>
    Code (markup):
     
    lonzie, Jun 18, 2009 IP
  7. techbongo

    techbongo Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #7
    if a page's absolute url is xyz--xyz.com/xyz/xyz.xyz and an anchor text on the page is named abc, the anchor text (here, your answers for each question) can be directly linked as xyz--xyz.com/xyz/xyz.xyz#abc
    Now how you use the absolute path for relative case, depends on you.
     
    techbongo, Jun 18, 2009 IP