Creating an Anchor Link 
Setting the Destination 

 

Guide to Setting Anchor Links

Anchor links are used to link to a specific part of the same page or another page. This is particularly useful for creating a table of contents or navigating long articles. Here's how you can set anchor links in HTML:

1. Creating an Anchor Link

To create an anchor link, you need to use the tag with an href attribute. The href should be set to the ID of the element you want to link to, prefixed with a hashtag (#).

Go to Section 1

2. Setting the Destination

The destination of an anchor link is an element with a unique ID. This can be any HTML element such as a heading, paragraph, or div. To set the destination, simply add an id attribute to the element.

 

Section 1

 

3. Example Usage

Here's a basic example of how to implement anchor links:



Contact Us


Contact Us


Feel free to reach out to us via email or phone.


    

4. Navigating to Another Page

You can also create links to specific sections on different pages by including the page URL followed by the hashtag and the element ID.

Meet the Team

Anchor links are a simple yet powerful tool to improve the navigation and user experience of a website. By following these steps, you can easily implement them on your web pages.