• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 66. Using Named Anchors > Setting Named Anchors

Setting Named Anchors

To set an anchor on your page, simply drop an anchor tag in the exact location you want the browser to go. Remember to specify the name attribute instead of the href attribute so that the tag functions as a destination instead of a source.

One of the most common uses of this technique is to divide a long Web page into several sections. You see this often on FAQ pages. The top of the page contains the frequently asked questions (FAQs), which are href anchors. The answers to the questions follow, each with its own named anchor tag, like so:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint