Fragment Addresses
Navigating to either an absolute or relative address will normally open that document at the start of the page. This is standard website design procedure.
It is possible however to add navigation points to the HTML code inside a Web page to allow quick navigation to specific points in that page.
These navigation points are called "anchors" and are always given a name by which they can be addressed.
In the example on the previous page the file named next.html has fragment anchors at the start, middle and end of the document.
These anchors are called "top", "middle" and "bottom".
This page can be opened in a Web browser at a specific point in the document by adding the required anchor name to the end of the page address.
These added anchor names are referred to as "fragment identifiers" and must be preceded by a "#" character.
The address to open "next.html" at the middle anchor is "http://www.webserver/webpages/next.html # middle".
If addressing this page and anchor from another file in the same folder the relative address "next.html#middle" could be used to open the document at the middle anchor.
Most website designers use anchors on a frequent basis to help improve navigation.
Back to HTML Tutorials |