HTML and CSS Reference
This is normally used to link to a
different website. It works equally
well for linking to pages on the cur-
rent site, but the extra characters
required for a full URL are unnec-
essary, as the next example shows.
It's common to annotate long documents in this fashion. Applying an
ID to each of the headings allows a table of contents to be built up, let-
ting a reader quickly access the relevant section. For example, on
Wikipedia, each article has a table of contents made up of links you can
click to take you to the relevant part of the article.