Step by Step Instructions for created an anchor link

Asked by:
LittleSisterPiggy / 5 Points
Time:
2014-10-12 10:14 pm EST
Category:
How To
Hits:
99
I want to make a link directly to the Comments box at the bottom of my page. This article gives me SOME of the info I need, I suppose, but I need a more "step-by-step" instruction guide.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

ScottM
Staff
16,266 Points
2014-10-12 11:09 pm EST
Hello,

I do agree the article needs some touching up to better explain how to create an anchor. There are only two steps involved in creating the anchor and it's link.

1) Create the anchor. This is a small piece of code that is added to the section of the page you want to link to. For a textbox you may want to name it 'text'. I would personally make a blank anchor text right above the box. The code would look like:
<a name="text"></a>


There is nothing in the anchor, but that is OK, it acts like a folded page in a book, just a placemark.

2) Create the link. There are two ways to create the link, one for when you are linking from the same page, and one for when you are linking from an external page. For example, let's say your domain is "example.com" and the textbox (and anchor you created above) is on your form page named "form.html". If you are creating a link to the text anchor on the form.html page, then it is a simple link:
<a href="#text">link text here</a>


If you are linking from an external page to the textbox, then it is a bit longer, but still simple:
<a href="http://example.com/form.html#text">link text here</a>


I hope this helps you with your anchor. I will ensure that article is on our update list, it is quite old and in need of refreshing.

Kindest Regards,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}