2.2.14 [HTML] Section 12.1.3, Specifying anchors and links
The specification states:
The A element may only appear in the body.
All Document Modes (All Versions)
A elements are recognized and displayed no matter where they are defined in the document. However, A elements defined within a TITLE element are not recognized.