How do I link to a location in the middle of an HTML document?
First, label the destination of the link. The old way to label the destination of the link was with an anchor using the NAME attribute. For example:
Section 2: Beyond Introductions
The modern way to label the destination of the link is with an ID attribute. For example:
Section 2: Beyond Introductions
Second, link to the labeled destination. The URL is the URL of the document, with “#” and the value of the NAME or ID attribute appended. Continuing the above examples, elsewhere in the same document you could use: go to Section 2 Similarly, in another document you could use: