Link Bookmarks
Link to the schedule section on events.html.
Understand the topic
A bookmark is a link to a fragment identifier in a document. Give the target a unique id and use # followed by that id in href. You can also append a fragment to another page URL. Bookmarks are useful for long articles, navigation lists, and direct links to a specific section.
Worked example
<nav aria-label="On this page"><a href="#fees">Jump to fees</a></nav>
<section id="fees"><h2>Fees</h2><p>The introductory class is free.</p></section>
The browser updates the URL fragment and moves to the target section. A sticky header may require scroll-margin-top on targets so their headings remain visible.
Practice
Link to the schedule section on events.html.
Show a suggested answer
<a href="events.html#schedule">View the event schedule</a>Common mistake
An id must be unique in the document. Repeating the same id makes the destination ambiguous.