Link to a Named Anchor
When you want to create an anchor link to a named anchor, use the following HTML:
<a href="#namedanchor">Text to act as hypertext</a>
The # symbol instructs your web browser to look through the HTML document for a named anchor. When you select or click on the hypertext, it brings the part of the document that contains the named anchor to the top of the screen.
- Now add anchor links to the named anchors your created in the previous page.
- Next, add named anchors and corresponding anchor links to ALL the headings in your history.html document
Review Topics
How do you identify a named anchor?
What are the steps for creating a link to a different section within a document?
How do you modify an anchor link to connect to a named anchor in another HTML
document?
How do you create a table of contents for a web page?
What is the difference in function between the tags <a href="...> and <a
name="...> ?
Independent Practice
Create named anchors for the headings in your own web page and build an index
that will link to these sub-sections.