Developer Tool
Anchor Link Generator
Anchor link HTML snippet for internal navigation. Use it online on EasyTools99.
Tool area
Everything runs in the browser.
Reference results
| Input | Result |
|---|---|
Destination ID = schedule / Link label = View the schedule | <a href="#schedule">View the schedule</a> |
Destination ID = getting-here / Link label = Find travel directions | <a href="#getting-here">Find travel directions</a> |
Destination ID = compatibility / Link label = View compatible models | <a href="#compatibility">View compatible models</a> |
Destination ID = opening-hours / Link label = Check opening hours | <a href="#opening-hours">Check opening hours</a> |
Destination ID = contacts / Link label = Find contact details | <a href="#contacts">Find contact details</a> |
Destination ID = registration-2026 / Link label = Read registration information | <a href="#registration-2026">Read registration information</a> |
How it works
The template places the supplied identifier after a hash in the link’s href attribute. It puts the label between the opening and closing anchor tags. For a same-page jump, the destination element needs a matching id. The tool inserts both fields as provided, so review the markup before publishing it.
Using the result
Test the saved link by following it rather than simply inspecting it in the editor. Look for an updated fragment in the browser address and check that the destination is visible, especially on a small screen with a fixed navigation bar.
Worked examples
- An editor adds a contents list to a conference page. She generates a link labelled “View the schedule”, gives the schedule heading the identifier “schedule”, and follows the link on mobile.
- A venue creates a jump to travel directions for visitors. The maintainer chooses “getting-here” and checks after saving that a fixed header does not cover the heading.
- A support writer adds a shortcut to a compatibility table. He verifies the generated identifier against the one assigned by the editor because copying the visible heading would give the wrong fragment.
Common mistakes
- Including a leading hash in the identifier field.
- Giving two sections the same id.
- Pasting untrusted markup or quotes into fields without reviewing the result.
FAQ
Do I need to write the hash myself?
The template inserts it. Enter only the identifier in the ID field.
Does the tool also create the destination?
Add the matching id to an element in the page where the link should land.
Can I jump from a different page?
In your editor, append the fragment to the destination page’s address rather than using the fragment alone.
