Results 1 to 2 of 2

Thread: Links for each section of a page

  1. #1
    Join Date
    Jan 2014
    Thanked 0 Times in 0 Posts

    Question Links for each section of a page

    I used to develop websites a lot of years ago, and have since returned. But obviously everything has changed
    ( I started with HTML 3 then on to 4 and messed with JS ) I'm doing ok, but one thing escapes me. I have seen
    sites, W3C being one of them, where if you click on a link on the nav'bar it will take you to another section of the
    same page. If somebody could point me in the direction of how to do that I would be most grateful. In the early
    years you created a frameset, then had to build pages to drop into your main page using a link. That's OK if it's
    a big site (although that format is not used now so I believe). As the site I'm working on isn't very big and each
    section only holds a cross section of items, one page would suffice. Any ideas?


  2. #2
    Join Date
    Mar 2005
    Thanked 3,267 Times in 3,228 Posts
    Blog Entries


    What you are talking about used to be called a named anchor because it used the name attribute of an a tag to navigate to that section of the page. However, the current convention is to use the id attribute for the same purpose. See:

    Scroll down to the section titled "HTML Links - The id Attribute".

    Also see the interactive demo:

    If you have more questions about it, just ask.
    - John

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Open link in a section of same page
    By Jamcan in forum HTML
    Replies: 4
    Last Post: 11-12-2012, 12:38 PM
  2. Replies: 4
    Last Post: 09-17-2009, 04:00 PM
  3. Printing a section of Web page Only
    By matrixbegins in forum JavaScript
    Replies: 1
    Last Post: 10-06-2008, 12:26 PM
  4. Printing a section of a page
    By Scrounger in forum Looking for such a script or service
    Replies: 5
    Last Post: 01-16-2008, 06:53 AM
  5. Blog section , Forums section - business
    By deepakdeep in forum Graphics
    Replies: 0
    Last Post: 11-25-2006, 09:21 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts