Creating and Hyperlinking to Anchors
An anchor is a marker within an HTML document, roughly analogous to a bookmark in a Word document. You define a specific location in the document with an anchor name, and then you can hyperlink directly to that anchor.
Anchors are most valuable in long documents with multiple sections. Rather than forcing users to read or scroll through the entire document, you can set up hyperlinks so users can jump to whatever section they want. You can do this internally by creating a list of hyperlinks at the top of the document, or you can do this externally by including an anchor name in a hyperlink to another document. There are two parts to the process: you mark the anchor location, and then you create a hyperlink that ...
Get HTML and XHTML Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.