Try to keep your NAME_OF_FRAGMENT fairly simple. Here's an example:
<A NAME="idiom_bird_worm"> The early bird catches the worm. </A>
Anchors that use the NAME attribute are called
LINKING TO A FRAGMENT (11b)
How do you accomplish step #2? That is, how do you LINK TO THE FRAGMENT? Use the familiar anchor construction, with a little twist:
you now need to give
the name of the fragment you want to go to within the document. Do this
by putting the hash symbol (#) after the Uniform Resource Locator, followed by
the name of your fragment, like this:
<A HREF="URL#NAME_OF_FRAGMENT"> clickable area </A>
If you're linking to a place in the same document, then you don't need the Uniform Resource Locator. All you need is the #NAME_OF_FRAGMENT part:
http://www.cwru.edu/help/introHTML/toc.html (link is no longer valid)
Please finish Chapter 6 (ANCHORS): start at the "NAME" section, and go to the end. Be sure to do all the end-of-chapter exercises.
(A11.1) Read pages 134135 (from "Linking Within a Document" up to "Affecting the Appearance of Links") in the Weasel Book.
(A11.2) Use named anchors to set up a TABLE OF CONTENTS for your homepage. Assign names to each section. Put a Table of Contents at the top that sends you to each of these named sections. You'll update your Table of Contents as you modify your sections throughout the year. Also, put a link at the bottom of your homepage that sends you back to the Table of Contents.