How to Page Anchor in HTML
A page anchor is a location on a page that can be linked to in another section of the page. The anchor allows the user to "jump" to that section. The HTML "<a>" tag is used to create and link to the anchor. The "name" attribute is used to create the anchor. The "#" symbol is used to link to the anchor. You should place the anchor directly above the text or image that you want to see at the top of the screen when you click on the link. You can add as many anchors as you would like on a single Web page.
Instructions
-
-
1
Open the HTML document that you want to add the anchor to in any plain text editor.
-
2
Place your cursor where you want to add the anchor.
-
-
3
Type the line
<a name="anchor_name"></a>
to create the anchor. Replace "anchor_name" with the name you want to give the anchor.
-
4
Place your cursor where you want the link to the anchor to be.
-
5
Type the line
<a href = "#anchor_name">Anchor Text</a>
to create the link to the anchor. Replace "anchor_name" with the name of the anchor. Replace "Anchor Text" with the text you want to appear as the link.
-
6
Save and close the HTML document.
-
7
Open the document in any Web browser to view and test the changes.
-
1