How to Create an Anchor in HTML
You have the ability to build links within the same Web page by creating an anchor. A HyperText Markup Language (HTML) anchor enables you to name a specific part of your page, such as a particular chapter, so that you have the ability to link text on the same page to this area. This process is especially useful if you have long blocks of content and you want to give readers a convenient way to access the data without having to scroll. Creating an anchor in HTML involves writing code.
Instructions
-
-
1
Start your text editor software, and bring up a Web page document.
-
2
Locate the content for which you want to make an anchor. Type "<a name=" ">" before the first word and "</a>" at the end, like this:
<a name=" ">Conclusion</a>
-
-
3
Enter a term of your preference between the quotation marks in the first anchor tag. If you use more than one word, separate the terms with an underscore ("_").
<a name="anchor_name">
-
4
Save your document. Your completed anchor looks similar to the following example:
<a name="end">Conclusion</a>
-
1
Tips & Warnings
Create a link that points to the anchor to activate it. Position your cursor before the text you want to make a hyperlink, type "<a href="#">" before the first letter and "</a>" at the end. Enter the anchor name, such as "end," after the number sign in the opening element.
<a href="#end">Link Name</a>