HTML Bookmark

Discussion in 'HTML & Website Design' started by meetdilip, Mar 31, 2014.

  1. #1
    I have seen some FAQ pages where when we click on a question, it goes to a particular part of the same page. Can anyone explain how we can do it ?
     
    Solved! View solution.
    meetdilip, Mar 31, 2014 IP
  2. #2
    You just target the area you want to go to with a link to the ID of the div:
    <a href="#div1">Go to div1</a>
    
    <div id="div1">This is div1</div>
    Code (markup):
     
    malky66, Mar 31, 2014 IP
    ryan_uk likes this.
  3. meetdilip

    meetdilip Active Member

    Messages:
    196
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Thanks @malky66

    Can I use it for menu items ? I mean, I am trying to make a single page WordPress page. Wondering if I can use it on menu so that If someone clicks on About Us it goes to that part of the page. Just want to make it clear that I can use it on menu as well. If it needs some extra code, please do add that as well.
     
    meetdilip, Mar 31, 2014 IP
  4. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #4
    You can use it anywhere in your html, no extra code needed.

    On a side note why would you want to use the bloated, unsecure pile of crap like turdpress for a single page website?, Sounds like overkill to me and something that could be done much better with pure html.
     
    malky66, Mar 31, 2014 IP
    wiicker95, ryan_uk and deathshadow like this.
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    I just said the exact same thing in a far less polite manner on another thread... If it's a single page site, what the blue blazes does it need a CMS for, much less a full blown blogging system? Talk about waste of time and code for NOTHING.
     
    deathshadow, Mar 31, 2014 IP
  6. meetdilip

    meetdilip Active Member

    Messages:
    196
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    It is what my friend needs. He is prefers WordPress and suggested me some themes as well. So it is always their choice
    I have little say in those.
     
    meetdilip, Mar 31, 2014 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #7
    Sounds more like they THINK they need it -- big difference; such thinking typical of people who think they can get tech advice from the pages of Forbes, which is akin to taking financial advice from the pages of Popular Electronics.

    To be frank, if it's a single page site and they 'think' they need turdpress for it, they don't know enough about the Internet to be allowed to have a website, much less make decisions about one; I would suggest telling them that, or backing away from the project until they have a clue. ANYONE making a decision like that, isn't worth having as a client.
     
    deathshadow, Apr 1, 2014 IP
    wiicker95, ryan_uk and malky66 like this.
  8. meetdilip

    meetdilip Active Member

    Messages:
    196
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #8
    I am just helping him, free of charge. He is a good friend of mine. It may be that we can use a single page HTML template, but he wants option to expand it at a later date. That may be the reason he chose WP or may be he is familiar with it.
     
    meetdilip, Apr 1, 2014 IP